Skip to content

Instantly share code, notes, and snippets.

@jamesmunns
Created May 13, 2022 16:30
Show Gist options
  • Save jamesmunns/dfd6335837219260367e640d4afdad88 to your computer and use it in GitHub Desktop.
Save jamesmunns/dfd6335837219260367e640d4afdad88 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 576.77 us 2.9476 ms 765778 312739 264630
postcard-all-varints 470.67 us 3.0264 ms 724953 303462 253747
postcard-rework-flavors 452.24 us 3.1036 ms 724953 303462 253747

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard 78.41% 100.00% 94.67% 97.03% 95.89%
postcard-all-varints 96.08% 97.40% 100.00% 100.00% 100.00%
postcard-rework-flavors 100.00% 94.97% 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 5.2342 ms 7.1867 ms 6000003 5380817 5345900
postcard-all-varints 1.3795 ms 7.2867 ms 6000003 5380817 5345900
postcard-rework-flavors 1.3139 ms 7.2444 ms 6000003 5380817 5345900

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard 25.10% 100.00% 100.00% 100.00% 100.00%
postcard-all-varints 95.24% 98.63% 100.00% 100.00% 100.00%
postcard-rework-flavors 100.00% 99.20% 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 575.73 us 2.5082 ms 356311 213270 198488
postcard-all-varints 482.51 us 2.7046 ms 367489 222144 207344
postcard-rework-flavors 456.82 us 2.6500 ms 367489 222144 207344

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard 79.35% 100.00% 100.00% 100.00% 100.00%
postcard-all-varints 94.68% 92.74% 96.96% 96.01% 95.73%
postcard-rework-flavors 100.00% 94.65% 96.96% 96.01% 95.73%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment