[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] GNU tar, star and BSD tar speed comparision +script

From: Joerg Schilling
Subject: Re: [Bug-tar] GNU tar, star and BSD tar speed comparision +script
Date: Tue, 23 Oct 2007 12:51:12 +0200
User-agent: nail 11.22 3/20/05

Tim Kientzle <address@hidden> wrote:

> Joerg Schilling wrote:
>  > For "bsdtar", please provide a download URL
> http://people.freebsd.org/~kientzle/libarchive/

Some notes on portability:

1)      I get many "warning"s like this one:

                "tar/write.c", line 27: warning: syntax error:  empty 

2)      setenv()/unsetenv() are a BSDism and not portable to all platforms
        as these functions have been added to the POSIX standard recently.

3)      the man page is unreadable as it has not been written using
        the "man" troff macro set. You should either rewrite the man page
        to use the man macros or write a bsd-man macro set that works with 

Some notes on the speed compared to star:

ptime ./bsdtar  cf /dev/null --format pax  /usr
bsdtar: Removing leading '/' from member names

real     2:21.420
user        3.441
sys        12.320

The same into a real file:
real     9:46.884
user        3.768
sys        33.896

ptime star cf /dev/null -dump /usr

real     1:59.314
user        1.620
sys        11.141

The same into a real file:
real     6:12.720
user        1.890
sys        29.734

BTW: -dump in star is more than star H=exustar but bsdtar --format pax is
more than star H=exustar so I decided to make it harder for star.

Both programs have been compiled using Sun Studio with -fast.

This comparison makes the other test even more unbelievable.

Except for the lseek() list case, bsdtar is at the same speed level as
GNU tar - a bit slower than star.


 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

reply via email to

[Prev in Thread] Current Thread [Next in Thread]