"tar -c|gzip" faster than "tar -cz"?!?

Joerg Sonnenberger joerg at britannica.bec.de
Wed Oct 11 06:33:58 PDT 2006


On Wed, Oct 11, 2006 at 11:34:10AM +0200, Oliver Fromme wrote:
> If gzip uses its own code instead of libz, that would
> explain the results of my test, of course.  So it seems
> that gzip is 30% faster than libz ...  quite significant,
> I think.

No, it isn't. I did benchmarks before importing the NetBSD version into 
DragonFly two years ago and gzip was *always* slower. zlib 1.2 added 
quite a number of performance improvements as well, so it shouldn't be 
the problem.

I have no idea why it is that slow on FreeBSD -- I don't think the 
slightly older version we have in DragonFly 1.6 is the origin.

The programs I run were from memory as well.

Joerg


More information about the freebsd-hackers mailing list