r/compression • • 17d ago

ZyFlate DEFLATE benchmark v2.0.0 — binary included, run it on your own data

I've been working on a DEFLATE compressor/decompressor called ZyFlate. I built a benchmark that tests it head-to-head against two widely deployed DEFLATE implementations and I'd like people who know compression to look at the numbers.

Full disclosure: I'm a solo developer, I use AI tools in my workflow, and I'm new to this community. No connections, no team. For all I know this could be some cruel hallucination and I'm completely wrong about everything.

But the benchmark is real. Download it. Run it on your own files.

Decompression throughput (100 MB test data, same compressed stream, all three decompress it):

LevelZyFlate MB/sLibrary A MB/sLibrary B MB/s
L11,091380890
L61,021387867
L121,2914741,044

Library A and B are two of the most widely deployed DEFLATE implementations. The benchmark output describes each one.

Parallel compress + decompress (2 threads):

Level1-core compress2-core compress1-core decompress2-core decompress
L1180 MB/s337 MB/s (1.9x)1,112 MB/s1,684 MB/s (1.5x)
L662 MB/s105 MB/s (1.7x)1,286 MB/s1,985 MB/s (1.5x)
L121.3 MB/s2.0 MB/s (1.6x)1,037 MB/s1,735 MB/s (1.7x)

Library A and B have no parallel API. ZyFlate splits input into independent 1 MiB chunks. All parallel outputs verified byte-exact against single-core.

Download:

https://github.com/GodlessVVanderer/slain-releases/releases/tag/zyflate-bench-v2.0.0

Windows x86-64. Supply any file as input (10+ MB recommended).

This isn't the finished version. The compressor is still being worked on — these numbers are mostly about the decompressor. There's an update coming that I think will change the conversation. If this doesn't impress you, the next one will.

I'm building this as part of something larger. If you work in compression and want to talk, my inbox is open.

AGPL-3.0-only. Commercial licensing available — joshdaem@gmail.com.

2 Upvotes

2 comments sorted by

1

u/Express-Theory-2338 17d ago

For context on these numbers: Library B is the fastest widely used DEFLATE decoder, the one other fast implementations benchmark against. Side by side (decompression, MB/s):

LevelLibrary BZyFlate, 1 threadZyFlate, 2 threads
L18901,091 (1.23x)1,684 (1.89x)
L68671,021 (1.18x)1,985 (2.29x)
L121,0441,291 (1.24x)1,735 (1.66x)

Library B is single-threaded only. Multipliers are relative to Library B.

The single-thread numbers are on standard DEFLATE streams. The 2-thread numbers are on ZyFlate's chunked output, which remains standard DEFLATE readable by any decoder and is verified byte-exact against single-threaded output.

I've only published 2-thread results so far while I finish other work. To measure scaling on your own hardware, the third argument sets the thread count:

zyflate-bench.exe yourfile 5 8

(input file, runs, threads; omit the thread count to use all cores). Library B has no parallel mode, so the gap widens with each core added.

If you'd rather not run a Windows binary, a Linux build will be available shortly.

Results from other machines are welcome.