On Fri, 15 Jul 2005, Joerg Schilling wrote:

> Chris Ricker <[EMAIL PROTECTED]> wrote:
> 
> > Initially performance, now licensing. GNU tar was used by FreeBSD up until 
> > recently. libarchive was written to speed up the FreeBSD pkg* tools, and 
> > then it was realized that it could be extended to a BSD-licensed tar 
> > implemented using libarchive....
> 
> I cannot see that it would give more performance than
> star.
> 
> Jörg

I just did a quick performance test of bsdtar vs. gnutar, star, and Solaris tar 
in extracting a large (704MB uncompressed) .tar.bz2 archive:

$ time gtar -xjf ~/Downloads/kde/KDEkderequired-341.tar.bz2

real    3m26.398s
user    1m55.630s
sys     0m39.099s

$ bzcat ~/Downloads/kde/KDEkderequired-341.tar.bz2 | time tar -xf -
tar: Read 4608 bytes from -

real     3:19.1
user        1.7
sys        31.0

$ time star -x -bz -time -fifo -f ~/Downloads/kde/KDEkderequired-341.tar.bz2
star: 72176 blocks + 4608 bytes (total of 739086848 bytes = 721764.50k).
star: Total time 174.392sec (4138 kBytes/sec)

real    2m54.416s
user    1m52.949s
sys     0m43.471s

$ time bsdtar -xjf ~/Downloads/kde/KDEkderequired-341.tar.bz2

real    3m8.928s
user    1m36.795s
sys     0m25.294s

As you can see, star is the fastest and gtar is the slowest.  My only complaint 
with star is that you can't combine single-letter options together ("tar -xzf", 
"tar -cjvf", etc.) like you can with every other version of tar.  I'll have to 
have a look at the source and see how easy it would be to remedy this issue.

--
Jake
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to