emulate an end-of-media

Martin Laabs martin.laabs at mailbox.tu-dresden.de
Tue Feb 26 18:45:08 UTC 2008


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.


More information about the freebsd-hackers mailing list