r/linux_NOsystemd • • Jan 08 '20

Some more tables on compression/decompression tests run

This gives a clearer picture of comparing xz to zstd when multithreading is taken into account. What arch devs published as test results with xz running on one core while zstd running on all cores of powerful server are very biased. https://lists.archlinux.org/pipermail/arch-dev-public/2019-March/029520.html

To put it into perspective, at pztsd level 16 there's a compression ratio of 3.7581 compressed in 9.01s. If you compared them in terms of comparable compression ratios, it would be equivalent to:

pxz level 3 with compression ratio of 3.7823 compressed in 9.15s

plzip level 3 with compression ratio of 3.7397 compressed in 6.43s

pbzip2 level 5 with compression ratio 3.7899 compressed in 3.14s

lbzip2 level 5 with compression ratio 3.7987 compressed in 1.83s

bzip2 level 5 with compression ratio 3.8013 compressed in 14.10s

brotli level 9 with compression ratio 3.7296 compressed in 21.36s

https://community.centminmod.com/threads/compression-comparison-benchmarks-zstd-vs-brotli-vs-pigz-vs-bzip2-vs-xz-etc.12764/

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/fungalnet Jan 08 '20

Fedore is onboard, and RHEL I believe is next, which means you'd pay to be a tester there :) Others have plainly rejected the proposal.

When xz added multithreading in 2014 (2015 stable release) zstd didn't exist yet. Arch still compressed tarballs using a single core and I believe a 5 compression ratio as default. From 1 to 19 levels of compression zstd I believe must me set to 17 or 18 to match the compression ratio, and at that ratio it misses the speed advantage.

What is often missed in comparison is the RAM use, which zstd uses enormous amounts. So a distribution must take into account various variables related to their setup before they decide.

My point is not performance though, not that I totally don't care about it but at what cost am I willing to gain a percentage. To allow large corporations' invasion into open and free software for me the cost is huge, and the trust is minimal. For this specific organized gangster incorporated the trust is an 1/x where x reaches infinity.