Linux compressors comparison on CentOS 6.5 x86-64: lzo vs lz4 vs gzip vs bzip2 vs lzma

Written by Gionatan Danti on . Posted in Linux & Unix

User Rating:  / 14
PoorBest 

Conclusions

From the above benchmarks, is clear that each contender has it specific use case:

  • lz4 and lzop are very good for realtime or near-realtime compression, providing significant space saving at a very high speed
  • gzip, especially in the multithreaded pgiz version, is very good at the general use case: it has both quite good compression ratio and speed
  • vanilla, single-threaded bzip2 does not fare very well: both its compression factor and speed are lower than xz. Only the excellent pbzip2 multithreaded implementation somewhat redeem it
  • xz is the clear winner in the compression ratio, but it is one of the slower programs both at compressing and decompressiong. If your main concern is compression ratio rather than speed (eg: on-line archive download) you can not go wrong with it
  • 7zip basically is a close relative of xz, but it main implementation belong to the windows ecosystem. Under Linux, simply use xz instead of 7-zip.

Feel free to discuss this article with me writing at This email address is being protected from spambots. You need JavaScript enabled to view it.

Have a nice day!

Comments   

 
#1 Rach Towess 2015-09-25 08:18
Thanks for the post, looks like similar info as http://linuxaria.com/article/linux-compressors-comparison-on-centos-6-5-x86-64-lzo-vs-lz4-vs-gzip-vs-bzip2-vs-lzma ?

I also found this post useful at explaining the differences, the summary seems to be similar in both posts which is good to see people testing these compression get similar results :) https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-comparison/
 

You have no rights to post comments