Skip to content

Instantly share code, notes, and snippets.

@jamesmunns
Created May 31, 2022 09:17
Show Gist options
  • Save jamesmunns/834c17f02cda3a61e9fafa39d1c2d60e to your computer and use it in GitHub Desktop.
Save jamesmunns/834c17f02cda3a61e9fafa39d1c2d60e 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
postcard-rework-flavors 400.06 us 2.6579 ms 724953 303462 253747
postcard-rework-canon 424.77 us 2.7454 ms 724953 303462 253747

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard-rework-flavors 100.00% 100.00% 100.00% 100.00% 100.00%
postcard-rework-canon 94.18% 96.81% 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
postcard-rework-flavors 1.2121 ms 2.8437 ms 6000003 5380817 5345900
postcard-rework-canon 1.2540 ms 2.8326 ms 6000003 5380817 5345900

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard-rework-flavors 100.00% 99.61% 100.00% 100.00% 100.00%
postcard-rework-canon 96.66% 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
postcard-rework-flavors 422.34 us 2.4086 ms 367489 222144 207344
postcard-rework-canon 432.80 us 2.2831 ms 367489 222144 207344

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard-rework-flavors 100.00% 94.79% 100.00% 100.00% 100.00%
postcard-rework-canon 97.58% 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