Gzip is quite close to the Pareto frontier, meaning it is a good trade off of time and space. See the charts at http://mattmahoney.net/dc/text.html (And read up on the Hutter Prize!)
gzip is fast relative to other compression algorithms and relative to internet speeds.
gzip is slower than an ideal gigabit network, but faster than 100mb.
https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-co...
> gzip is fast relative to other compression algorithms
gzip looks fast perhaps compared to "xz -9", but not to anything modern.
Typical gzip decompression speed is somewhere in the 200-250 MB/s region, compression is much slower. LZ4 for example tends to compress at ~600-700 MB/s, and decompress at several GB/s. zstd is tweakable over a very wide range of ratio-speed trade-offs.
LZMA(2) (xz) is a rather troubled format and should not be used any more. bzip2 has always been slower than gzip with usually marginally better compression. It has been irrelevant for a long time.
You mean xz. Not sure where you got the idea that it’s a troubled format, but if you’re talking about the infamous “Xz format inadequate for long-term archiving”, IMO that’s just bzip2 authors taking a dump on xz for no good reason, and fortunately for us it’s bzip2 that’s basically irrelevant today, not xz.
Funny you say that, my company uses bz2 for compressing pretty much everything.
Brotli is better, zstd is faster, lz4 is often good enough and a lot faster.