Blog 2020/7/7 (retroactively posted on 2020/7/10)
Comparing lzo compression levels (and gzip)
To do this, I wrote a simple Janet script called zbench.
Because lzop is so fast, I ran this script on the slowest hardware I had on hand (a 266MHz NSLU2) to exaggerate any differences. For reference, I've also included gzip results.
lzop -6are the same
lzop -7is slower than
gzip -9, with ratio equivalent to
- if you need more compression than
gzip -1has a significantly better ratio at the cost of 3x the run time.
-6shows almost no improvement on ratio
I could think of only the following use-cases for
lzop -7 through
- lzop is required by the system
- decompression speed trumps every other concern
- you have zero memory available for decompression (e.g. a microcontroller)
So, at least for the use-base of compressing Linux source code, these are points of interest: