Hi,

Yes, gzip or bzip2 compress better, but they also:
  * Are a lot slower.

Yesterday I made a comparison regarding the speed
of compress, bzip2 and gzip.
And actually compress is much slower than gzip:


$ dd if=/dev/random |compress -c > /dev/null
3883204 bytes/sec
$ dd if=/dev/random |gzip -c > /dev/null
8357889 bytes/sec
$ dd if=/dev/random |bzip2 -c > /dev/null
1042735 bytes/sec

I also made a comparison between gzip and bzip2 regarding
the compression ratio on a dump of my home directory (3.2GB)
bzip2 took about 74min to compress, gzip only 11minutes. And
in terms of compression ratio bzip2 was only 3% better than
gzip.

Best greet,
  Martin L.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to