Benchmarked: What’s the Best File Compression Format?

Status
Not open for further replies.

Petrovic

Level 64
Thread author
Verified
Honorary Member
Top Poster
Well-known
Apr 25, 2013
5,355
It’s time to compress some files, so what format do you use? Zip, RAR, 7z, or something else? We performed some benchmarks to determine which format gives you maximum compression.

Compression ratio isn’t the only factor, of course. Some of these formats are just easier to use because they’re integrated into desktop operating systems, while some require third-party software.

File Compression Benchmarks
This is more complicated than it seems. How much compression you achieve will depend not only the on the archive type you create, but on the application you use to compress it and the settings you use. We stuck with popular applications at their default compression settings to simplify things.

Rather than messing with some of the usual file types here — like Word DOCX documents, which already use a form of Zip compression, and JPG images, which also use a form of compression — we decided to compress a few installed PC games. Games incorporate graphics, music, text files, executables, and various other different types of files, so they’re a good real-world dataset with various different types of files.

First, we installed Bastion and compressed its folder — about 863 MB in size of music, graphics, executable files, and various different types of documents:

  • Zip (Windows 8.1): 746 MB (86.4% of the original size)
  • Zip (WinZip): 745 MB (86.3% of the original size)
  • RAR (WinRAR): 746 MB (86.4% of the original size)
  • 7z (7-Zip): 734 MB (85% of the original size)
Next, we compressed Hotline Miami, which is 654 MB of data:

  • Zip (Windows 8.1): 316 MB (48.3% of the original size)
  • Zip (WinZip): 314 MB (48% of the original size)
  • RAR (WinRAR): 307 MB (46.9% of the original size)
  • 7z (7-Zip): 301 MB (46% of the original size)
ximg_5452f31b7e36b.png.pagespeed.ic.CfuHLk6t4G.png


And the Winner Is…
The winner by pure compression is 7z, which isn’t surprising to us. We’ve seen 7z come on the top of file compression benchmarks time and time again. If you want to compress something to use as little space as possible, you should definitely use 7z. You can even crank up the compression settings to save even more space, although it will take longer to compress and decompress.

Overall, Zip and RAR came pretty close to each other. WinZip also didn’t beat out the integrated Windows support for creating Zip files by that much. In short, we recommend:

  • For Maximum Compression: Create 7z archives with 7-Zip.
  • For Ease of Use and Maximum Compatibility: Create Zip files with the feature integrated into your operating system. For example, on Windows, select some files in Windows Explorer or File Explorer, right-click them, point to Send To, and select Compressed (zipped) folder.
ximg_5452f3608c958.png.pagespeed.ic.hmIfnomq_6.png


Operating System Support
If you’re just compressing files for your own use, you can use whatever file format you like. However, some archive formats are more interoperable and work out-of-the-box on various operating systems without installing third-party software. If you’re sending the archives to someone else, or you’re posting them online, you’ll probably want to use a format that the recipients can access with less fuss.

Here are the formats integrated into popular operating systems:

  • Windows: Zip only. This feature was added back in Windows XP, so practically every Windows user can create and extract zip files.
  • Mac OS X: Zip is supported, and so are other archive types like .tar.gz and .tar.bz2. .7z and .rar will require third-party software.
  • Linux: Zip is generally supported out-of-the-box. 7z and RAR files will work in standard programs like File Roller, but you’ll have to install the appropriate command-line utilities from your package manager first. Tar formats like .tar.gz and .tar.bz2 are supported out-of-the-box on Linux, too.
  • Chrome OS: Zip and RAR are both supported. Tar.gz and tar.bz2 can also be opened in the Files app, and the contents can be extracted.
Windows is the biggest stick-in-the-mud here — it only supports Zip files, so Zip is the most universal format. If you work with Mac or Linux, you could use a .tar format instead. 7z is the least supported — it’s not integrated into any operating system, so you’ll have to install an application to open .7z archives. But, if you want the best compression ratio possible, 7z is the way to go.

ximg_5452f39c74171.png.pagespeed.ic.97ZLqPbVuX.png


All compression benchmarks are rough. You’ll get different results with different data and types of data. We’re happy with our overall results, but you might see different results when compressing different types of data.
Source
 

BoraMurdar

Community Manager
Verified
Staff Member
Well-known
Aug 30, 2012
6,598
It's always a matter what are you compressing. In most cases 7zip with ultra/maximum compression gives the best results. Especially if you compress programs, exes, portables and some pictures and documents.
It doesn't help a lot and it isn't too much difference when you try to compress video, music which are already compressed with new containers like mp4, mkv, mp3 and others
 
  • Like
Reactions: Petrovic and yigido
Y

yigido

Sometimes I get better results with .zip deflate compression.
Example; I had a folder approx. 3GB files in it. But these files 1-2MB around sometimes 1KB files exist. I used 7zip with 7z-LZMA2-Ultra..after compression (it takes so much time)
the compressed file 1,7GB around..this is delicious :)
 
  • Like
Reactions: BoraMurdar

BoraMurdar

Community Manager
Verified
Staff Member
Well-known
Aug 30, 2012
6,598
I like to have portable programs on my usb flash drive. It happens often that unpacked portable program takes ~50mb. And 7zip compresses it to ~10 or smaller. Like yigido said...delicious :)
 
  • Like
Reactions: yigido
Status
Not open for further replies.

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top