Hacker News new | past | comments | ask | show | jobs | submit login

Are there any memory & CPU consumption graphs?

I also don't understand why not xz, though I know that requires significantly more resource than gzip.




Brotli actually has levels of compression that are more dense than gzip and compress/decompress faster. There is also a spec, xz has a reference implementation but no spec.


> more dense than gzip and compress/decompress faster

If you're saying brotli compresses/decompresses faster that gzip, it doesn't according to Cloudflare tests [1] (see table near bottom).

Even the fastest compression level of Brotli is slower than the highest/slowest compression level of gzip in most cases.

[1]: https://blog.cloudflare.com/results-experimenting-brotli/


> If you're saying brotli compresses/decompresses faster that gzip, it doesn't according to Cloudflare tests.

It doesn't always compress faster, but as far as I can tell they didn't measure or say anything about decompression.


I just did this:

time bro --quality 6 --input linux-4.5.tar --output linux-4.5.tar.bro

real 0m18.436s user 0m18.228s sys 0m0.184s

time gzip -9 linux-4.5.tar real 0m30.555s user 0m30.424s sys 0m0.172s

ls -lh (I removed the metadata): 106M linux-4.5.tar.bro 129M linux-4.5.tar.gz

Only 82% of the size at 60% of the time. Now this is pure text so that's not a good example of everything.


If it takes a lot of CPU, it might not be worth the CPU time or cost. https://i.imgur.com/bAc1Saq.png Image from https://dl.acm.org/citation.cfm?id=1084786&dl=ACM&coll=DL&CF... And gzip speed has improved since 2005, so over a 10 Mbps connection, you'd have to get much better compression to be worth the switch.


>XZ is a file format, LZMA is the compression algorithm.

https://bugzilla.mozilla.org/show_bug.cgi?id=366559#c18




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: