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 | brotli -11 | Pedulli (best-of-N) | Δ |
|---|---|---|---|
| JSON 31 KB | 2,510 B | 1,265 B | -50% |
| Small generic text 4 KB | ~1.4 KB | ~1.4 KB | tie (selects brotli) |
| HTML 161 KB | 35,705 B | 35,705 B | tie (selects brotli) |
| JavaScript source 47 KB | 12,225 B | 12,225 B | tie (selects brotli) |
| 1 MiB of zeros | 1,036 B | 13 B | much smaller (redundant input) |
| 1 MiB periodic binary | 1,948 B | 436 B | -78% |
| MP4 master 10 MB | 9,830,512 B | 9,430,108 B | -400 KB |
| Apache logs 3.5 MB | 231 KB | 217 KB | -6.4% |
| Random bytes 1 MB | 1,048,581 B (+5 B) | 1,048,577 B (+1 B) | 4 B less overhead |
Switch to Pedulli for JSON / domain-shaped data archival, video masters, periodic sensor data and the per-file +1 byte never-worse floor - and because, by racing brotli internally, its output is never larger than brotli's. Keep brotli for HTTP Content-Encoding on the wire (browsers already speak it).