Measured - byte-exact - 2026

Pedulli vs zstd

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

TL;DR - honest
Pedulli is a best-of-N racer: it races xz, zstd, brotli and your data's SRD math and keeps the smallest verified output, always byte-exact (SHA-256 roundtrip) with a +1 byte never-worse floor on its own output - so it is never larger than the best standard codec (worst case +1 byte). It wins outright on structured data (JSON, HTML, source, periodic, MP4) and ties the best codec on already-optimal/random data, where it adds +1 byte against zstd's 13-39. zstd is far faster - that is its design priority and it wins throughput. Different jobs.

The measured table

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

Inputzstd-19 / --longPedulli (best-of-N)Δ
1 MiB of zeros43 B13 Bmuch smaller (redundant input)
1 MiB periodic binary1,872 B436 B-77%
Apache logs 3.5 MB240 KB217 KB-9.5%
JSON 31 KB2,801 B1,265 B-54.8%
HTML 161 KB41,288 B38,757 B-6.1%
MP4 master 10 MB9,481,772 B9,430,108 B-51 KB
Random bytes 1 MB1,048,589 B (+13 B)1,048,577 B (+1 B)12 B less overhead

What zstd does better (honest)

What Pedulli does that zstd does not

When to use which

Use zstd when throughput dominates (kernel-level, btrfs, ZFS, RPC compression) and ratio is secondary. Use Pedulli when ratio matters: log archives, JSON/XML telemetry, HTML/JS bundles, video masters, backups - plus the per-file +1 byte never-worse floor.

More comparisons: gzip - xz - 7-Zip - brotli - lz4