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

Dale DuRose mafiageek at gmail.com
Wed Oct 11 03:48:16 PDT 2006


Hi


I've tested on 6.1-RELEASE-p5 box these are my results.

I'm wondering why the dragonfly results are so different. What have you
guys done?


Cheers Dale



Run 1
-------------------------------------------------------------------------

%time sh -c "bsdtar -czf test.tgz /usr/src/contrib/gcc"
12.707u 0.547s 0:13.48 98.2%    58+607k 6+86io 0pf+0w

%time sh -c "bsdtar -cf - /usr/src/contrib/gcc | gzip > test2.tgz"
11.043u 0.901s 0:12.07 98.9%    58+588k 0+86io 0pf+0w

%time bsdtar -czf test3.tgz /usr/src/contrib/gcc
12.832u 0.525s 0:13.50 98.8%    58+607k 0+86io 0pf+0w


Run 2
-------------------------------------------------------------------------

%time sh -c "bsdtar -czf test.tgz /usr/src/contrib/gcc"
12.810u 0.435s 0:13.39 98.8%    58+608k 0+86io 0pf+0w

%time sh -c "bsdtar -cf - /usr/src/contrib/gcc | gzip > test2.tgz"
11.033u 0.884s 0:12.05 98.8%    58+590k 0+86io 0pf+0w

%time bsdtar -czf test3.tgz /usr/src/contrib/gcc
12.684u 0.397s 0:13.33 98.0%    58+608k 0+86io 0pf+0w


Run 2 File Results
-------------------------------------------------------------------------

-rw-r--r--  1 coder  coder  11275589 Oct 11 23:39 test.tgz
-rw-r--r--  1 coder  coder  11273163 Oct 11 23:40 test2.tgz
-rw-r--r--  1 coder  coder  11275589 Oct 11 23:41 test3.tgz



More information about the freebsd-hackers mailing list