Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm comparing compression functions, and I'm surprised by what I'm seing. Maybe I'm doing something wrong, but everything I've tested has been more compressed by gzip than bzip2!

I was under the impression that bzip2 was better than gzip. Can someone give an example of data that would demonstrate this? Thanks.

share|improve this question
up vote 3 down vote accepted

gzip is stream-oriented, bzip2 is block-oriented. You will need several tens of kilobytes before you see an advantage with bzip2.

share|improve this answer
Additionally, there's also "pbzip2" (the "p" is for "parallel") which takes advantage of multiple processors (by using "pthreads") for additional performance gains: – Randolf Richardson May 10 '11 at 6:40

One example of many - the Linux kernel source tarball. See for more.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .