bsdtar vs gtar performance
Kris Kennaway
kris at obsecurity.org
Sat Sep 23 21:52:15 PDT 2006
[Moving to current@ where it's on-topic]
On Sat, Sep 23, 2006 at 10:26:38AM -0700, Tim Kientzle wrote:
> Kris and Ruslan were recently discussing the performance of bsdtar
> relative to gtar, which prompted me to do some measurements
> of my own. I used /usr/ports as my test, because it stresses
> file and directory creation over extracting large files.
>
> Here are some initial results, based on ten runs of each test on a
> quiescent system, comparing results with PHK's "ministat":
>
> * Creating uncompressed archives: bsdtar and gtar showed
> no difference in total time.
>
> * Extracting gzip-compressed archives: bsdtar and gtar showed
> no difference in total time.
>
> * Extracting uncompressed archives: gtar is about 13% faster
> than bsdtar in my test. Interestingly (to me), this was the same
> with or without -m. (I've long suspected dir timestamp restores
> as a contributor; this shows otherwise.)
With 10 repetitions of an extraction of the ports tree to a
swap-backed md (newfs'ed in between tests, mounted async), I get a
much bigger difference in favour of gtar:
x gtar-data
+ bsdtar-data
+------------------------------------------------------------+
|x + |
|x + |
|xx + |
|xx ++ |
|xx ++ |
|xx ++++|
|A| A| |
+------------------------------------------------------------+
N Min Max Median Avg Stddev
x 10 34.9 35.2 34.985 35.008 0.095893459
+ 11 48.95 49.68 49.21 49.249091 0.19216943
Difference at 95.0% confidence
14.2411 +/- 0.141059
40.6795% +/- 0.402932%
(Student's t, pooled s = 0.154247)
I suspect you were measuring extraction on real disk hardware, in
which case you're mostly measuring overhead from the disk I/O, which
is going to make up most of the real time in both cases.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060924/0c150aa9/attachment.pgp
More information about the freebsd-current
mailing list