(no title)
atiedebee | 1 month ago
brotli 1.0.7 args: -q 11 -w 24
zstd v1.5.0 args: --ultra -22 --long=31
| Original | zstd | brotli
RandomBook.pdf | 15M | 4.6M | 4.5M
Invoice.pdf | 19.3K | 16.3K | 16.1K
I made a table because I wanted to test more files, but almost all PDFs I downloaded/had stored locally were already compressed and I couldn't quickly find a way to decompress them.Brotli seemed to have a very slight edge over zstd, even on the larger pdf, which I did not expect.
mort96|1 month ago
I did my own testing where Brotli also ended up better than ZSTD: https://news.ycombinator.com/item?id=46722044
Results by compression type across 55 PDFs:
mort96|1 month ago
Here's a table with the correct sizes, reported by 'du -A' (which shows the apparent size):
These numbers are much more impressive. Still, Brotli has a slight edge.mrspuratic|1 month ago
Thoreandan|1 month ago
atiedebee|1 month ago
atiedebee|1 month ago
order-matters|1 month ago
that data in pdf files are noisy and zstd should perform better on noisy files?
jeffbee|1 month ago