| Java Compression Classes | Speed Comparison |
| The Lineup | Links |
| Compactness Comparison |
I did not benchmark BZip2. I did not have the patience to decode its installation instructions.
NT/W2K/XP/W2K3/Vista/W7 has a built-in compact utility for storing files in compressed form in a transparent way. You just use the files normally. You don’t have to use a utility to decompress them first. You use it like this:
// compress a directory tree compact.exe /C /S:mydirtreeYou can also compress and decompress directories with the GUI explorer properties.
| Comparison of Compactness of Various Compression utilities | |||
|---|---|---|---|
| Utility | % of original size
(smaller is better) |
size in bytes
(smaller is better) |
notes |
| 7-zip | 42% | 37,357,861 | in PPmD Ultra mode. Best compression. However, other compression algorithms are almost as good and are quite a bit faster. |
| 7-zip | 42% | 37,826,519 | in LZMA Ultra mode |
| 7-zip | 44% | 39,134,141 | in Bzip2 Ultra mode |
| WinZip Double Zipped | 46% | 40,774,398 | double zipped. archive with compression turned off, then zip that zip with maximum enhanced deflate. The end result is a zip inside a zip, possibly a bit confusing for the recipient. |
| WinRar | 55% | 49,176,236 | in RAR best mode |
| WinZip | 58% | 52,370,193 | in non-compatible, maximum enhanced deflate |
| PKZIP | 59% | 52,635,830 | in maximum compression mode. This is barely better than the standard compression. This is the PkWare the originators of the PKZIP format. |
| Jar.exe | 68% | 52,653,468 | no manifest, JDK 1.6 |
| Windows Compact | 91% | 81,433,854 | Windows built-in compact |
| Original | 100% | 89,558,283 | Size before compression |
| Comparison of Speed of Various Compression utilities | |||||
|---|---|---|---|---|---|
| Utility | % of best speed
(bigger is better) |
time in seconds
(smaller is better) |
% of original size
(smaller is better) |
size in bytes
(smaller is better) |
notes |
| WinZip 9 | 100% | 46 | 59% | 52,508,437 | in default mode. Fastest of all, by a wide margin. It as the most difficult user interface. It is also the one I am most familiar with. Very easy to get the wrong files or wrong level of qualification. No tree view of the zip file structure. |
| PKZIP | 82% | 56 | 59% | 52,665,195 | in standard compression mode. This is the PkWare the originators of the PKZIP format. |
| Jar.exe | 68% | 1:08 | 59% | 52,653,468 | Sun Java jar creator 1.6 |
| WinRar | 41% | 1:53 | 57% | 51,221,269 | in RAR mode. Easiest to understand user interface. |
| Windows Compact | 43% | 1:47 | 91% | 81,433,854 | Windows built-in compact |
| Original | 38% | 2:02 | 100% | 89,558,283 | Time for a simple copy. Size before compression. Astoundingly, Microsoft is so incompetent it takes them longer to do a simple file copy than it takes for others to compress the files. |
| 7-zip | 33% | 2:21 | 43% | 38,420,302 | in standard LZMA mode |
| 7-zip | 29% | 2:37 | 44% | 39,253,316 | in standard Bzip2 mode |
| 7-zip | 29% | 2:39 | 43% | 38,805,582 | in standard PPmD mode |
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/compressionutilities.html | J:\mindprod\jgloss\compressionutilities.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.107] | |
| Feedback | You are visitor number 10,425. | |