Re-balancing Deflate Compression Levels
2 points by typesanitizer
2 points by typesanitizer
This is odd work, as if you're paying this much attention to speed and archive size, there are likely compressors better suited for you. I did this with only one or two files, but I'd reach for zstandard for speed and xz for smaller archives. Here are my graphs.
If you want waaaay more extensive comparisons, check the Squash Compression Benchmark.
If I understand the context here, this is for the Go standard library, providing reasonable high-level knobs that folks can adjust without doing this kind of heavy benchmarking. "Hm, we're spending a lot on bandwidth but our cores are pretty unloaded, maybe we should move the compression up a level."
(Also, I suggested a title change- note this is from 2016. Looks like it predates zstd being public bu about six months :-) )