TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Maximum best compression for binary data: xz (LZMA) vs. ZSTD vs. 7z vs. bzip2

8 pointsby delduca7 months ago

2 comments

nabla97 months ago
For many uses decompression speed is more interesting than compression speed.
评论 #41869042 未加载
jmclnx7 months ago
Right now I tend to stick with gzip and bzip2, and rarely xz. I like the fact when I gzip&#x2F;bzip2, my laptop does not heat up to a degree where I could fry an egg on it :)<p>Plus with the size of drives, getting 10% or so better encryption does not matter too much to me. If it saved 25% on huge files, maybe I would reconsider.<p>I did a comparison on a 43 gig file, here are the sizes I got.<p>Size and compression time comparison:<p>* txt: 43G n&#x2F;a<p>* gz: 20G Compression Time 00:38:37<p>* bz2: 18G Compression Time 01:16:45<p>* xz: 18G Compression Time 12:25:42 (300M smaller than bz2)<p>The original 43G file was compressed via 7zip, and was about 600M smaller than the xz version.<p>This was done on a Thinkpad W541, my main system.