A Quick Benchmark: Gzip vs. Bzip2 vs. LZMA (2024)

Note: The first column with numbers 1…​9 indicatesthe compression setting passed to gzip, bzip2 and lzmash (e.g. gzip -9).

Tarball made from a full installation of OpenOffice.org 1.1.4 for Linux

Uncompressed size: 212664320 bytes (203 MB)

Compressed file size in bytes gzip bzip2 lzmash lzmash -e1 86322815 76147880 67456213 -2 84858575 74320824 62085798 -3 83561997 73467586 59547691 592783724 81312776 73044026 58245872 579641665 79798262 72762041 56694215 564116316 79179298 72540199 56182079 558595147 78995264 72512833 55535273 552692268 78816280 72314472 54678948 544050789 78768334 72223858 54068819 53769958Compressed size / Uncompressed size * 100% gzip bzip2 lzmash lzmash -e1 40,6% 35,8% 31,7% -2 39,9% 34,9% 29,2% -3 39,3% 34,5% 28,0% 27,9%4 38,2% 34,3% 27,4% 27,3%5 37,5% 34,2% 26,7% 26,5%6 37,2% 34,1% 26,4% 26,3%7 37,1% 34,1% 26,1% 26,0%8 37,1% 34,0% 25,7% 25,6%9 37,0% 34,0% 25,4% 25,3%Compression time gzip bzip2 lzmash lzmash -e1 11.5s 1m 26s 0m 58s -2 12.0s 1m 40s 2m 7s -3 13.7s 1m 54s 4m 58s 7m 37s4 15.1s 2m 5s 5m 26s 8m 2s5 18.4s 2m 11s 6m 47s 11m 18s6 24.5s 2m 18s 7m 30s 12m 4s7 29.4s 2m 25s 8m 24s 12m 59s8 45.5s 2m 32s 10m 59s 20m 17s9 66.9s 2m 37s 12m 20s 21m 56sDecompression time gzip bzip2 lzmash lzmash -e1 3.3s 16.5s 11.3s -2 3.3s 24.2s 10.5s -3 3.3s 29.2s 10.5s 10.4s4 3.3s 32.1s 10.4s 10.3s5 3.2s 34.2s 10.2s 10.2s6 3.2s 35.4s 10.2s 10.1s7 3.2s 36.5s 10.1s 10.0s8 3.2s 37.5s 10.0s 9.9s9 3.1s 38.2s 10.0s 9.9sCompression speed, MB/s of uncompressed data (1 MB = 1024 * 1024 bytes) gzip bzip2 lzmash lzmash -e1 18 2.4 3.5 -2 17 2.0 1.6 -3 15 1.8 0.68 0.444 13 1.6 0.62 0.425 11 1.5 0.50 0.306 8.3 1.5 0.45 0.287 6.9 1.4 0.40 0.268 4.5 1.3 0.31 0.179 3.0 1.3 0.27 0.15Decompression speed, MB/s of uncompressed data (1 MB = 1024 * 1024 bytes) gzip bzip2 lzmash lzmash -e1 61 12 18 -2 61 8.4 19 -3 61 6.9 19 204 61 6.3 20 205 63 5.9 20 206 63 5.7 20 207 63 5.6 20 208 63 5.4 20 209 65 5.3 20 20

The Linux kernel 2.6.11.0 source tarball

Uncompressed size: 208250880 bytes (199 MB)

Compressed file size in bytes gzip bzip2 lzmash lzmash -e1 57860603 43873922 43933138 -2 55274813 41108704 38871392 -3 53416918 39791569 34863499 348234654 49695438 39040694 33545762 335135095 47775348 38395197 32481024 324457166 47004031 37975094 31686173 316619477 46797152 37676593 30881464 308416028 46578138 37365408 30295730 302610279 46578138 37075679 29809336 29780803Compressed size / Uncompressed size * 100% gzip bzip21 27,8% 21,1% 21,1% -2 26,5% 19,7% 18,7% -3 25,7% 19,1% 16,7% 16,7%4 23,9% 18,7% 16,1% 16,1%5 22,9% 18,4% 15,6% 15,6%6 22,6% 18,2% 15,2% 15,2%7 22,5% 18,1% 14,8% 14,8%8 22,4% 17,9% 14,5% 14,5%9 22,4% 17,8% 14,3% 14,3%Compression time gzip bzip2 lzmash lzmash -e1 8.3s 1m 9s 0m 45s -2 8.7s 1m 22s 1m 45s -3 9.8s 1m 34s 5m 10s 8m 43s4 11.1s 1m 45s 5m 43s 9m 41s5 13.8s 1m 57s 7m 39s 14m 38s6 17.8s 2m 2s 8m 23s 15m 32s7 20.7s 2m 11s 9m 11s 16m 23s8 29.7s 2m 21s 11m 34s 24m 47s9 40.9s 2m 26s 12m 31s 25m 53sDecompression time gzip bzip2 lzmash lzmash -e1 2.8s 12.8s 7.7s -2 2.7s 19.4s 6.9s -3 2.6s 23.8s 6.4s 6.6s4 2.5s 26.4s 6.3s 6.3s5 2.5s 28.3s 6.3s 6.3s6 2.4s 29.6s 6.2s 6.3s7 2.4s 30.6s 6.2s 6.2s8 2.4s 31.3s 6.1s 6.1s9 2.4s 32.1s 6.1s 6.1sCompression speed, MB/s of uncompressed data (1 MB = 1024 * 1024 bytes) gzip bzip2 lzmash lzmash -e1 24 2.9 4.4 -2 23 2.4 1.9 -3 20 2.1 0.64 0.384 18 1.9 0.58 0.345 14 1.7 0.43 0.236 11 1.6 0.39 0.217 9.6 1.5 0.36 0.208 6.7 1.4 0.29 0.139 4.9 1.4 0.26 0.13Decompression speed, MB/s of uncompressed data (1 MB = 1024 * 1024 bytes) gzip bzip2 lzmash lzmash -e1 71 16 262 74 10 293 76 8.3 31 304 79 7.5 32 325 79 7.0 32 326 83 6.7 32 327 83 6.5 32 328 83 6.3 33 339 83 6.2 33 33

In this test bzip2 is a tough adversary to lzmash in fast modes.lzmash -e makes a few kB smaller files with the expense of a lotlonger compression time.

XMMS 1.2.10 binary package

XMMS 1.2.10 binary package (xmms-1.2.10-i486-2.tgz) from Slackware 10.1.The file was first gunzipped, resulting uncompressed size of5498880 bytes (5.2 MB).

Compressed file size in bytes gzip bzip2 lzmash lzmash -e1 2160102 1803573 1431699 -2 2112332 1611408 1140030 -3 2072044 1539083 1034903 10386154 2031519 1487237 1004176 10076925 1992713 1464332 987189 9887586 1979068 1433617 983305 9831987 1973404 1431276 982125 9832408 1972424 1414142 980836 9835829 1970643 1385112 980836 983582Compressed size / Uncompressed size * 100% gzip bzip2 lzmash lzmash -e1 39,3% 32,8% 26,0% -2 38,4% 29,3% 20,7% -3 37,7% 28,0% 18,8% 18,9%4 36,9% 27,0% 18,3% 18,3%5 36,2% 26,6% 18,0% 18,0%6 36,0% 26,1% 17,9% 17,9%7 35,9% 26,0% 17,9% 17,9%8 35,9% 25,7% 17,8% 17,9%9 35,8% 25,2% 17,8% 17,9%Compression time gzip bzip2 lzmash lzmash -e1 0.3s 2.4s 1.4s -2 0.3s 2.9s 2.7s -3 0.4s 3.2s 6.2s 8.9s4 0.4s 3.3s 6.6s 9.3s5 0.5s 4.6s 8.2s 13.3s6 0.7s 5.6s 8.5s 13.7s7 0.8s 4.7s 8.6s 13.6s8 1.1s 4.9s 10.5s 21.5s9 1.8s 5.1s 10.5s 21.5sDecompression time gzip bzip2 lzmash lzmash -e1 0.1s 0.4s 0.3s -2 0.1s 0.6s 0.2s -3 0.1s 0.7s 0.2s 0.2s4 0.1s 0.8s 0.2s 0.2s5 0.1s 0.9s 0.2s 0.2s6 0.1s 0.9s 0.2s 0.2s7 0.1s 0.9s 0.2s 0.2s8 0.1s 1.0s 0.2s 0.2s9 0.1s 1.0s 0.2s 0.2s

For some reason, bzip2 -6 took more time than even bzip -9. Theresult didn’t change when the test was repeated. The extreme mode oflzmash creates a few bytes bigger files; seems that using lzmash -emakes compression both slower and less efficient with smaller files.Speed tables are omitted because the smaller test file makes measuringthe elapsed time with 'time' command too inaccurate.

XMMS 1.2.10 source tarball

Uncompressed size: 15964160 bytes (15.2 MB)

Compressed file size in bytes gzip bzip2 lzmash lzmash -e1 4705710 3702465 3390291 -2 4560441 3172615 2117511 -3 4460478 2914692 1921894 19290774 4213705 2748562 1803104 18085325 4095300 2670185 1721301 17236896 4060060 2591439 1642013 16436457 4046707 2500735 1540827 15417358 4035433 2464688 1533283 15315149 4034855 2418265 1533283 1531514Compressed size / Uncompressed size * 100% gzip bzip2 lzmash lzmash -e1 29,5% 23,2% 21,2% -2 28,6% 19,9% 13,3% -3 27,9% 18,3% 12,0% 12,1%4 26,4% 17,2% 11,3% 11,3%5 25,7% 16,7% 10,8% 10,8%6 25,4% 16,2% 10,3% 10,3%7 25,3% 15,7% 9,7% 9,7%8 25,3% 15,4% 9,6% 9,6%9 25,3% 15,1% 9,6% 9,6%Compression time gzip bzip2 lzmash lzmash -e1 0.7s 6.1s 3.5s -2 0.7s 7.3s 6.0s -3 0.8s 8.5s 19.0s 30.8s4 0.9s 9.9s 19.9s 31.2s5 1.1s 11.2s 28.9s 1m 1s6 1.4s 11.0s 30.1s 1m 2s7 1.7s 12.5s 30.9s 1m 4s8 2.5s 15.9s 41.7s 1m 56s9 2.9s 17.5s 41.7s 1m 56sDecompression time gzip bzip2 lzmash lzmash -e1 0.2s 1.0s 0.6s -2 0.2s 1.5s 0.4s -3 0.2s 1.9s 0.4s 0.4s4 0.2s 2.1s 0.4s 0.4s5 0.2s 2.3s 0.4s 0.4s6 0.2s 2.5s 0.4s 0.4s7 0.2s 2.6s 0.4s 0.4s8 0.2s 2.7s 0.4s 0.4s9 0.2s 2.8s 0.4s 0.4s

For some reason, in compression bzip2 -6 was a little faster thanbzip -5 but bzip -6 still created smaller file. Speed tables areomitted because the smaller test file makes measuring the elapsed timewith time command too inaccurate.

A Quick Benchmark: Gzip vs. Bzip2 vs. LZMA (2024)
Top Articles
Craigslist Com Hudson Valley
Regenmesser via esphome
Devotion Showtimes Near Xscape Theatres Blankenbaker 16
Ffxiv Shelfeye Reaver
³µ¿Â«»ÍÀÇ Ã¢½ÃÀÚ À̸¸±¸ ¸íÀÎ, ¹Ì±¹ Ķ¸®Æ÷´Ï¾Æ ÁøÃâ - ¿ù°£ÆÄ¿öÄÚ¸®¾Æ
30 Insanely Useful Websites You Probably Don't Know About
Rainbird Wiring Diagram
Teenbeautyfitness
Skip The Games Norfolk Virginia
All Obituaries | Ashley's J H Williams & Sons, Inc. | Selma AL funeral home and cremation
Love Compatibility Test / Calculator by Horoscope | MyAstrology
Qhc Learning
6th gen chevy camaro forumCamaro ZL1 Z28 SS LT Camaro forums, news, blog, reviews, wallpapers, pricing – Camaro5.com
Condogames Xyz Discord
Spectrum Field Tech Salary
Marine Forecast Sandy Hook To Manasquan Inlet
Spn 520211
67-72 Chevy Truck Parts Craigslist
Pocono Recird Obits
Rochester Ny Missed Connections
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Jeff Nippard Push Pull Program Pdf
Speedstepper
Copper Pint Chaska
Masterbuilt Gravity Fan Not Working
Pixel Combat Unblocked
Airg Com Chat
Sam's Club Gas Price Hilliard
134 Paige St. Owego Ny
1475 Akron Way Forney Tx 75126
Housing Assistance Rental Assistance Program RAP
Scioto Post News
Hattie Bartons Brownie Recipe
Hair Love Salon Bradley Beach
Craigslist Red Wing Mn
2024 Ford Bronco Sport for sale - McDonough, GA - craigslist
Quake Awakening Fragments
Greater Keene Men's Softball
AI-Powered Free Online Flashcards for Studying | Kahoot!
Soulstone Survivors Igg
Evil Dead Rise (2023) | Film, Trailer, Kritik
Wo ein Pfand ist, ist auch Einweg
Express Employment Sign In
The best bagels in NYC, according to a New Yorker
Locate phone number
Avance Primary Care Morrisville
White County
Lsreg Att
Duffield Regional Jail Mugshots 2023
Invitation Quinceanera Espanol
Gainswave Review Forum
Dinargurus
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6281

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.