3 ms·
Judging from this and other benchmarks, Zstd does seem to achieve that aim pretty well. Although the library API is IMO a bit weird in some aspects. I actually
by st_goliath 5y ago
Judging from this and other benchmarks, Zstd does seem to achieve that aim pretty well. Although the library API is IMO a bit weird in some aspects.
I actually did a simple SquashFS benchmark myself a while back[1][2] (including Zstd vs plain zlib, which SquashFS calls "gzip") and came to the same conclusion as the article: Zstd turned out to compress somewhat faster, decompress more than twice as fast and achieved a higher data density. It would be interesting how much the better optimized zlib mentioned in the article could gain on Zstd at least in terms of speed.
Interestingly, in addition to zlib, in my benchmark Zstd also clearly beats LZO in terms of speed and size.
[1] https://github.com/AgentD/squashfs-tools-ng/blob/master/doc/benchmark.txt https://github.com/AgentD/squashfs-tools-ng/blob/master/doc/...
[2] https://github.com/AgentD/squashfs-tools-ng/blob/master/doc/benchmark.ods https://github.com/AgentD/squashfs-tools-ng/blob/master/doc/...