====== Compressing files ====== * ''xz -1'' is reasonably fast and compresses much better than ''gzip -9'' * ''zstd'' seems to be one of the fastest algorithms. * Some people think ''xz'' is [[https://www.nongnu.org/lzip/xz_inadequate.html|inadequate for long-time file archiving]]. * ''7z'' has integrated AES256 encryption. ===== Benchmarks ===== * [[https://catchchallenger.first-world.info/wiki/Quick_Benchmark:_Gzip_vs_Bzip2_vs_LZMA_vs_XZ_vs_LZ4_vs_LZO|Quick Benchmark: Gzip vs Bzip2 vs LZMA vs XZ vs LZ4 vs LZO]] (CatchChallenger Wiki) * Centminmod Forums: Compression Comparison Benchmarks: [[https://community.centminmod.com/threads/round-3-compression-comparison-benchmarks-zstd-vs-brotli-vs-pigz-vs-bzip2-vs-xz-etc.17259/|Round 3]] ([[https://archive.ph/PSq2F|Archive]]), [[https://community.centminmod.com/threads/round-4-compression-comparison-benchmarks-zstd-vs-brotli-vs-pigz-vs-bzip2-vs-xz-etc.18669/|Round 4]] * Comparing 11 different compression algorithms: * zstd v1.4 - Facebook developed realtime compression algorithm here. For --format=lz4 using lz4 v1.9.0 * brotli v1.0 - Google developed Brotli compression algorithm * gzip v1.5 * bzip2 v1.06 * pigz v2.4 - multi-threaded version of gzip * pbzip2 v1.1 – multi-threaded version of bzip2 * lbzip2 v2.5– multi-threaded version of bzip2 * lzip v1.21 – based on LZMA compression algorithm * plzip v1.8 – multi-threaded version of lzip * xz v5.2 * pxz v5.2 - multi-threaded version of xz