BZip3 compressor beats BZip2 and rivals xz on Perl source archive test
BZip3, an open-source successor to BZip2, combines a Burrows-Wheeler transform with suffix arrays, an LZ77/PPM-style matching pass, and an order-0 context-mixing entropy coder to boost both compression ratio and speed. In a benchmark compressing every historical Perl 5 release bundled into one tar file, BZip3 with a large block size produced a much smaller output than bzip2, xz, and zstd, while also decompressing faster than the other tools tested.
GoKawiil's interpretation of the reporting above, not reported fact.
Compression tools are judged on a trade-off between ratio, speed, and memory use, and BZip3's results suggest it can beat established tools like xz and zstd on real-world source code archives without sacrificing decompression speed. Because it's installable via standard package managers and build tools, developers working with large text or code repositories could adopt it as a drop-in replacement for smaller, faster archives.
- BZip3 achieved roughly half the compressed size of xz and a third of bzip2 on a large Perl source archive test.
- It uses a mix of Burrows-Wheeler transform, suffix arrays, LZ77-style matching, and PPM-style context modeling for better compression.
- Despite higher memory use at large block sizes, BZip3 decompressed faster than bzip2, xz, and comparably to zstd.
Samsung T7 Portable SSD — If you're benchmarking compressors on multi-gigabyte tarballs like the Perl source archive, fast local storage keeps the bottleneck in the CPU where it belongs. The Samsung T7 is a pocket-sized USB-C SSD that's great for hauling around big test corpora and archived backups of your compressed data.
See Samsung T7 Portable SSD on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: github.com, 2026-09-07
Published there as: “bzip3”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.