Skip to content

Instantly share code, notes, and snippets.

@jamesmunns
Created May 18, 2022 22:03
Show Gist options
  • Save jamesmunns/3e5c8f0747c75b2804d2c485cc4d23ab to your computer and use it in GitHub Desktop.
Save jamesmunns/3e5c8f0747c75b2804d2c485cc4d23ab to your computer and use it in GitHub Desktop.

No LTO

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 526.32 us 2.7938 ms 724953 303462 253747
postcard-vint 559.15 us 3.1911 ms 724953 301958 252389

Zero-copy deserialization speed

Format / Lib Access Read Update

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% 99.50% 99.46%
postcard-vint 94.13% 87.55% 100.00% 100.00% 100.00%

Zero-copy deserialization speed

Format / Lib Access Read Update

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.2873 ms 3.1077 ms 6000003 5380817 5345900
postcard-vint 1.2941 ms 3.0000 ms 6000003 5380817 5345900

Zero-copy deserialization speed

Format / Lib Access Read Update

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard-rework-flavors 100.00% 96.53% 100.00% 100.00% 100.00%
postcard-vint 99.47% 100.00% 100.00% 100.00% 100.00%

Zero-copy deserialization speed

Format / Lib Access Read Update

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 446.32 us 2.4212 ms 367489 222144 207344
postcard-vint 456.65 us 2.5539 ms 366496 206780 191110

Zero-copy deserialization speed

Format / Lib Access Read Update

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% 99.73% 93.08% 92.17%
postcard-vint 97.74% 94.80% 100.00% 100.00% 100.00%

Zero-copy deserialization speed

Format / Lib Access Read Update

LTO

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 424.34 us 2.7761 ms 724953 303462 253747
postcard-vint 454.14 us 2.9782 ms 724953 301958 252389

Zero-copy deserialization speed

Format / Lib Access Read Update

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% 99.50% 99.46%
postcard-vint 93.44% 93.21% 100.00% 100.00% 100.00%

Zero-copy deserialization speed

Format / Lib Access Read Update

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 974.20 us 1.2524 ms 6000003 5380817 5345900
postcard-vint 1.0265 ms 1.3195 ms 6000003 5380817 5345900

Zero-copy deserialization speed

Format / Lib Access Read Update

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-vint 94.91% 94.91% 100.00% 100.00% 100.00%

Zero-copy deserialization speed

Format / Lib Access Read Update

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 477.31 us 2.5197 ms 367489 222144 207344
postcard-vint 441.12 us 2.6382 ms 366496 206780 191110

Zero-copy deserialization speed

Format / Lib Access Read Update

Comparison

Relative to best. Higher is better.

Serialize / deserialize speed and size

Format / Lib Serialize Deserialize Size Zlib Zstd
postcard-rework-flavors 92.42% 100.00% 99.73% 93.08% 92.17%
postcard-vint 100.00% 95.51% 100.00% 100.00% 100.00%

Zero-copy deserialization speed

Format / Lib Access Read Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment