Re: speed of bzip2 versus gzip



On Fri, 20 Jul 2007 15:03:37 -0700
James Long <list@xxxxxxxxxxxxxxx> wrote:

Is it normal for bzip2 to be significantly slower than gzip?
If not, where can I look for things that might be causing
"bzip2 --fast" to take 50-60 times longer to compress a
(sendmail log) file than gzip?

i never measured it to see if it is 50-60 times slower, but yes, gzip blows
bzip2 out of the water on speed. I wanted to use bzip2 to compress multi-GB
weblog files, but gzip beat it my miles, and bzip2 wasn't THAT much better @
compressing it to make it worth it.

The box I had tested this one was a Dual Opteron 250, 4 GB RAM, SATA drives
gmirrored, FreeBSD 6.1 (or 2), amd64.

_________________________
{Beto|Norberto|Numard} Meijome

"Any intelligent fool can make things bigger and more complex...
It takes a touch of genius - and a lot of courage to move in the opposite
direction." Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: paper comparing time complexity of compression algorithms
    ... >> compression algorithms (notably gzip and bzip2) for text data up to ... > Do you mean time complexity as in big-O notation? ...
    (comp.compression)
  • Re: speed of bzip2 versus gzip
    ... i never measured it to see if it is 50-60 times slower, but yes, gzip ... I wanted to use bzip2 to compress ... then your goal is to obtain the absolute best compression, ... sys 0m0.257s ...
    (freebsd-questions)
  • Re: Linux Kernel Source Compression
    ... gzip is the winner again. ... usually two to six times more time than lzma, that is, four to twelve ... decompress the faster the smaller the compressed size is, while bzip2 ... gets slower when the compression ratio gets better. ...
    (Linux-Kernel)
  • Re: using bzip2 to compress man-pages
    ... >> My guess is that roughly 95% of the manpages aren't going to save a ... Unfortunately, bzip2 sometimes compresses less well than gzip, ...
    (freebsd-current)
  • Re: speed of bzip2 versus gzip
    ... i never measured it to see if it is 50-60 times slower, but yes, gzip ... I wanted to use bzip2 to compress ... then your goal is to obtain the absolute best compression, ... more reasonable if you care about reasonably timely compression. ...
    (freebsd-questions)