Description
Compression result for the Canterbury Corpus are disappointing. We always appear to be a few percentage points off the other libraries once we hit level 6, except for kennedy.xls
which compresses far better than the alternatives. For lower compression levels we compare very well.
https://github.com/SixLabors/ZlibStream/blob/196c4730ba637a445e840ed7cfe67297e77b47af/benchmarks.md
According to the Squash Benchmark
- Zlib-ng achieved a compression ratio of 3.09 for
cp.html
at level 6, we only achieve 2.99. - Zlib-ng achieved a compression ratio of 5.05 for
kennedy.xls
at level 6, we achieve 5.5.
I had a go at porting the deflate_slow
method from there but that dramatically reduced compression in our sparse benchmarks to levels matching compression level 3. I haven't ported across deflate_medium
yet to experiment (deflate_quick
is currently broken and disabled via compiler conditionals).
@nmoinvaz I'd love to have your insight as to the cause of the difference if you have time.