To view parent comment, click here.
To read all comments associated with this story, please click here.
Did you even try it yourself first? It's not hard to test. Here's the first random, moderately sized file I thought of to try:
kristian@mars:~/Temp$ ls -l libc-2.5.so*
-rwxr-xr-x 1 kristian kristian 1216808 2007-10-07 21:53 libc-2.5.so
-rw-r--r-- 1 kristian kristian 435125 2007-10-07 21:53 libc-2.5.so.7z
-rwxr-xr-x 1 kristian kristian 536797 2007-10-07 21:53 libc-2.5.so.bz2
That's a 100k difference over bzip2 -9. For a very large file which may be downloaded a large number of times the difference is even more pronounced:
kristian@mars:~/Temp$ ls -lh syllable-0.6.4.iso*
-rw-r--r-- 1 kristian kristian 106M 2007-10-07 21:58 syllable-0.6.4.iso
-rw-r--r-- 1 kristian kristian 77M 2007-10-07 22:02 syllable-0.6.4.iso.7z
-rw-r--r-- 1 kristian kristian 82M 2007-10-07 21:58 syllable-0.6.4.iso.bz2
Edited 2007-10-07 21:04
"""
"""
The data I transfer daily in lzma format is my own customers' point of sale data. I can't very well send you that. So try this instead:
#!/bin/bash
cd /etc
tar -c -v -f - . | cat > ~/test.tar
tar -c -v -f - . | bzip2 > ~/test.tar.bz2
tar -c -v -f - . | lzma -9 > ~/test.tar.lzma
Here are the results on my FC7 system:
-rw-r--r-- 1 root root 114114560 2007-10-07 16:39 test.tar
-rw-r--r-- 1 root root 9486794 2007-10-07 16:40 test.tar.bz2
-rw-r--r-- 1 root root 6953453 2007-10-07 16:44 test.tar.lzma
That's 27% smaller than the bzip2 file, on a test I pulled randomly out of the air.
The *big* news here is that there are actually bzip2 zealots in this world! Who'd have thought?
Would you like a valium?
Edited 2007-10-07 22:02
I tried it on 2 VMWare virtual machines with full Linux installations, and came up with right around 18% gain over bzip2 on both tests. So I think it's pretty fair to call a 20% gain typical. 30-40% maybe not, but for certain classes of files perhaps.
1222163426 vs 1485770949
17.7%
1037944559 vs 1274922856
18.6%







Member since:
2007-06-30
What a flat out lie. You can't beat bzip2 with anything but a few percent, except on the occasional obscure crafted file. Prove it, I say. You say "often". I invite you to pick any exe on teh intarweb, compress it with bzip2 and lzma and post the results to something like fileshack.