Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

File Archiver Smackdown

July 5th, 2007 by Angsuman Chakraborty

I tested several file compression programs like zip, gzip, arj, bzip2, jar etc for compressing big files. The corpus constituted 5 POI generated Microsoft Excel documents totaling 298.8 MB. And there is a clear winner!

About the data
The file excel documents were standard corporate data of a very big corporation (read Fortune 500). There is nothing special about the data as such, regular text data in excel files. For obvious reasons I cannot share the data for independent verifications.

Archive formats not tested
I haven’t tested two popular file formats - rar & 7zip as they aren’t easily available on Linux.

Results

Compression Algorithm Compressed Size % Compression
tar.bz2 10.9 MB 96.35
tar.gz 52.5 MB 82.43
zip 52.5 MB 82.43
arj 52.5 MB 82.43
jar 52.5 MB 82.43

Test Notes
The File Roller archive manager which ships with Gnome UI on Linux provides even better bzip2 compression than bzip2 -9!
bzip2 -9 compressed to 12 MB.

I also tried .tar.zip which was the worst.

All the file formats took comparable times but then I tested them on a Core 2 Duo 6600 with 2 GB RAM and RAID 1 SATA drives :)
As such the results do not speculate about performance.

All the compressed files were tested for accuracy of data.

Winner
This shows all popular compression algorithms are on the same level with the sole exception of bzip2, which stands leagues ahead of the rest. The clear winner of compression algorithms is bzip2.

Linux and Windows users can use bzip2 by directly running the bzip executable (downloadable from bzip2.org). The latest version of 7Zip and WinZip, both supports bzip2 format.

Linux users have a winner in File Roller.


Filed under Enterprise Software, Fedora Core 6, Gnome Desktop, Headline News, Linux, Linux Migration, Microsoft, Tech Note, Technology, Windows | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»Program (Source Code) to Trim Whitespaces from Files...
»Free Java Utility To Touch Files (Cross Platform)
»How To Run Apache Ant Recursively From Any Sub-Folders
»How To Change Temporary Download Directory of Download Accelerator Plus (DAP)
»iPhone Activation for Dummies
»Firefox download manager appears broken
»Creating link files (.lnk ) files in windows
»How To Solve PmWiki File Upload Problem & Other Upload Tips
»How To Find Your PHP.INI
»All Destops Are NOT Apple!... At Least Not Yet.
»How To Use AWK To Simplify Scripting: Multi-Database Backup Example
»DOS Tricks: Creating File From DOS / CMD Command Line...
»Firefox Tip: How To Change "Do This Automatically For Files Like This From Now On" Option
»How To Get Subversion Revision ID From PHP
»How To Add Revision Number, ID Automatically To Subversion Files in Two Simple Steps

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"Whoever undertakes to set himself up as a judge of Truth and Knowledge is shipwrecked by the laughter of the gods." - Albert Einstein