Measured - byte-exact - 2026

Pedulli vs gzip

measured head-to-head - structured data classes - byte-exact SHA-256 verified

TL;DR - honest
Pedulli is a best-of-N racer: it runs several internal coders and keeps the smallest output, always byte-exact (SHA-256 roundtrip) with a +1 byte never-worse floor. Against gzip -9 it wins on every structured class measured (logs, JSON, HTML, periodic, MP4) and adds +1 byte where gzip adds 192 on incompressible data. gzip is preinstalled everywhere and has near-zero per-call overhead on tiny inputs - keep it there.

The measured table

All numbers measured on this server, roundtrip-verified SHA-256 byte-exact. Proofs available on request.

Inputgzip -9Pedulli (best-of-N)Δ
1 MiB of zeros1,041 B13 Bmuch smaller (redundant input)
1 MiB periodic binary3,140 B436 Bmuch smaller (redundant input)
Apache logs 3.5 MB318 KB217 KB-31.7%
JSON 31 KB4,820 B1,265 B-73.7%
HTML 161 KB52,103 B38,757 B-25.6%
MP4 master 10 MB9,742,892 B9,430,108 B-312 KB
Random bytes 1 MB1,048,768 B (+192 B)1,048,577 B (+1 B)191 B less overhead
Random bytes 4 KB4,237 B (+141 B)4,097 B (+1 B)140 B less overhead

What gzip does better (honest)

What Pedulli does that gzip does not

When to switch

Switch to Pedulli for log archives, JSON/XML telemetry, HTML/CSS/JS bundles, periodic sensor data, video masters and the per-file +1 byte never-worse floor. Keep gzip when you are piping sub-KB strings inside a single process.

More comparisons: zstd - xz - 7-Zip - brotli - zip