I was wondering how powerful are those simple stream compressors like gzip and bzip2. Test rabbit was a Linux kernel source tree tar-ed into one file which was thrown out to those compression beasts. Simple benchmarks were performed on Mobile AMD Sempron 3100+.
Contestants: gzip 1.3.12, bzip2 1.0.4, lzop 1.01, lzma 4.43
Speed results:
time gzip -c linux-2.6.23.9.tar >/dev/null real 0m20.300s user 0m17.449s sys 0m0.532s time gzip -c --fast linux-2.6.23.9.tar >/dev/null real 0m13.581s user 0m8.837s sys 0m0.448s time gzip -c --best linux-2.6.23.9.tar >/dev/null real 0m38.525s user 0m36.018s sys 0m0.436s time lzop -c linux-2.6.23.9.tar >/dev/null real 0m9.791s user 0m2.964s sys 0m0.576s time lzop -c --fast linux-2.6.23.9.tar >/dev/null real 0m10.146s user 0m3.084s sys 0m0.564s time lzop -c --best linux-2.6.23.9.tar >/dev/null real 2m18.935s user 2m9.952s sys 0m0.716s time bzip2 -c linux-2.6.23.9.tar >/dev/null real 2m6.911s user 1m59.339s sys 0m0.680s time lzma -c linux-2.6.23.9.tar >/dev/null real 7m19.071s user 7m5.579s sys 0m0.652s
Size results:
264724480 linux-2.6.23.9.tar
45476434 linux-2.6.23.9.tar.bz2
57942367 linux-2.6.23.9.tar.gz
57407545 linux-2.6.23.9.tar.gz-best
71828761 linux-2.6.23.9.tar.gz-fast
38638365 linux-2.6.23.9.tar.lzma
90858121 linux-2.6.23.9.tar.lzo
66036984 linux-2.6.23.9.tar.lzo-best
90358485 linux-2.6.23.9.tar.lzo-fast
No Comments
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.