Skip to content

Instantly share code, notes, and snippets.

@pvdrz
Last active February 11, 2022 16:50
Show Gist options
  • Save pvdrz/02104f5021036188488f86f4bf740fcc to your computer and use it in GitHub Desktop.
Save pvdrz/02104f5021036188488f86f4bf740fcc to your computer and use it in GitHub Desktop.

log

This data set is composed of HTTP request logs that are small and contain many strings.

Raw Data

For operations, time per iteration; for size, bytes. Lower is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
bincode 423.58 us 2.4583 ms 1045784 374305 311761
packable 210.43 us 2.8747 ms 1045784 374305 311761

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
bincode 49.68% 100.00% 100.00% 100.00% 100.00%
packable 100.00% 85.52% 100.00% 100.00% 100.00%

mesh

This data set is a single mesh. The mesh contains an array of triangles, each of which has three vertices and a normal vector.

Raw Data

For operations, time per iteration; for size, bytes. Lower is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
bincode 4.4976 ms 3.5731 ms 6000008 5380823 5345890
packable 1.0348 ms 2.3921 ms 6000008 5380823 5345890

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
bincode 23.01% 66.95% 100.00% 100.00% 100.00%
packable 100.00% 100.00% 100.00% 100.00% 100.00%

minecraft_savedata

This data set is composed of Minecraft player saves that contain highly structured data.

Raw Data

For operations, time per iteration; for size, bytes. Lower is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
bincode 478.22 us 2.0602 ms 569975 240897 232423
packable 222.74 us 2.0021 ms 566975 239723 232010

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
bincode 46.58% 97.18% 99.47% 99.51% 99.82%
packable 100.00% 100.00% 100.00% 100.00% 100.00%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment