measured head-to-head - structured data classes - byte-exact SHA-256 verified
All numbers measured on this server, roundtrip-verified SHA-256 byte-exact. Proofs available on request.
| Input | lz4 -9 | Pedulli (best-of-N) | Δ |
|---|---|---|---|
| 1 MiB of zeros | 4,184 B | 13 B | much smaller (redundant input) |
| JSON 31 KB | 6,238 B | 1,265 B | -80% |
| HTML 161 KB | 63,488 B | 38,757 B | -39% |
| Apache logs 3.5 MB | 489 KB | 217 KB | -55.6% |
| MP4 master 10 MB | 10,156,032 B | 9,430,108 B | -711 KB |
| Random bytes 1 MB | 1,048,605 B (+29 B) | 1,048,577 B (+1 B) | 28 B less overhead |
Use lz4 when latency dominates and ratio is secondary (in-memory caches, compressed swap, read-path decompression). Use Pedulli when ratio matters: cold storage, log archives, video masters, JSON archival - plus the per-file +1 byte never-worse floor.