|
|
|
|
|
by blank_state
3642 days ago
|
|
> Brotli's fastest compression is slightly faster than zstd's. Come on, this is not serious. Brotli's fastest compression algorithm is still significantly slower than zstd. And more importantly, it compresses _much worse_. For a 3rd party evaluation, one can try [TurboBench](https://github.com/powturbo/TurboBench) or even [lzbench](https://github.com/inikep/lzbench) which are open-sourced. Squash introduces a wrapper layer with distortions which makes it less reliable, and more complex to use and install, quite a pity given the graphical presentation is very good.
I'm interested in speed, and in this area, all benchmarks point in the same direction : for a given speed budget, Zstandard offers better ratio (and decompresses much faster). |
|
I get a test file by: wget https://web.archive.org/web/20151222062543/http://www.micros...
The test file is 267253 bytes.
$ ./lzbench -ebrotli,0,1,2,5,7,9,11/zstd,1,22 testfile
brotli 0.4.0 -0 compresses 783 MB/s and decompresses 809 MB/s
zstd 0.7.1 -1 compresses 586 MB/s and decompresses 1691 MB/s
brotli 0.4.0 -7 compresses 57 MB/s, decompresses 873 MB/s to 28185 bytes
brotli 0.4.0 -11 compresses to 25413 bytes
zstd 0.7.1 -22 compresses in 4.01 MB/s to 28363 bytes
Of course it is an unfair example because of the static dictionary that brotli uses, but it is not a pathological example: Thai is not part of the static dictionary. The numbers are on a i7-4790K@4.00 GHz.
Brotli's fastest compression is faster than that of zstd, at least as shown with lzbench and this file. Also brotli wins in compression density. In this file the win is 10.5 % less bytes for brotli -11 than for zstd -22.