Re: emulate an end-of-media



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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Is /bin/zip large file aware?
    ... > What's wrong with bzip2, gzip, or compress (all of which are ... > large-file aware)? ... Gzip does work, and right now I'm giving bzip2 a whirl. ...
    (comp.unix.solaris)
  • Re: Gzip better than Bz2 ? Normal?
    ... > I ve got a strange behavior with bz2 and gzip. ... > When i compress a small folder around 225 Mo the compression goes to ... > 3.1 mo for bzip2 ...
    (Fedora)
  • Re: OpenSSH
    ... > Nobody uses plain old compress, and I doubt that bzipcompresses all that ... > extra compression is eaten up on my maching buy having to have both gzip and ... gzip doesn't ship with the OS any more than bzip2 does. ... long as the install is no mor difficult than any oither, ...
    (comp.unix.sco.misc)
  • Re: Is /bin/zip large file aware?
    ... > bzip2 does compress by default with -9, ... > with gzip instead of the default will favour gzip. ... > My own results (all times user times) ...
    (comp.unix.solaris)
  • Gzip better than Bz2 ? Normal?
    ... I ve got a strange behavior with bz2 and gzip. ... When i compress a small folder around 225 Mo the compression goes to ... 46 mo for bzip2 ...
    (Fedora)