From owner-freebsd-current@FreeBSD.ORG Thu Jan 17 09:13:58 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D83B16A417 for ; Thu, 17 Jan 2008 09:13:58 +0000 (UTC) (envelope-from avleeuwen@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 5F01A13C465 for ; Thu, 17 Jan 2008 09:13:58 +0000 (UTC) (envelope-from avleeuwen@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so972793waf.3 for ; Thu, 17 Jan 2008 01:13:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; bh=nbwB1PNliPWNXJxDv0uO9uxUOpULvGyRQJ4Cb5Ak2lU=; b=EM+eNCK+xcnD3KEPIGVswyb87qoZgsTMsqm2hSi2J0LkQIHj9gdqr3d2JMVrK4aBvUTRXPKa8ZocENsFiY3i+SrFjXwQhNCTlefrB+78zRws8rGrOSfyBwxalASNGDDZ9lznBKE+mfajGV/dUaiz1mk/n7CiznlbGr9kqnXWHKQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=ufze6ywOivzH7seVZgREs7HVUgJoCNOnuPPOclj4+PvHI5gNyJWCzpT3PGZ9G13WSKjZXpFhU/vNMCjZ0CHHHhu1UP5bIOaTcTqtHyNE7lIkxvI+GkncgS9aJ8CMwWIKljrRem85rCOKHLQn3TstLaGpPufwCdFU8rQ7IMFk3h0= Received: by 10.115.15.1 with SMTP id s1mr2159494wai.0.1200559657106; Thu, 17 Jan 2008 00:47:37 -0800 (PST) Received: by 10.114.131.15 with HTTP; Thu, 17 Jan 2008 00:47:37 -0800 (PST) Message-ID: Date: Thu, 17 Jan 2008 09:47:37 +0100 From: "Arjan van Leeuwen" To: freebsd-current@freebsd.org In-Reply-To: <20080111142336.GA1379@plan0.kaiwan.csbnet.se> MIME-Version: 1.0 References: <20080111142336.GA1379@plan0.kaiwan.csbnet.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: [Call for testers] "BSD ar" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: avleeuwen@piwebs.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 09:13:58 -0000 Hi Kai, 2008/1/11, Kai Wang : > > Hi list, > > I think it's time for "BSD ar" to get a public review after months of > bug hunting and cleaning up done by jkoshy@ and me. The majority of > the coding work was done during the summer of 2007 and was sponsored > by Google SoC 2007 programme. > > You can find the tarball at: > http://web.student.chalmers.se/~kaiw/patch/ar-20080111.tgz > > BSD ar is mostly compatible with GNU ar and it has advantages like: > > * BSD licensed. > * hopefully cleaner and simpler. (build on libarchive and libelf) > * inherited compression support from libarchive. > (the usefulness of this function is limited though, since ld(1) > does not recognize compressed .a files) > * faster, due to the adoption of libarchive and libelf. > (see benchmark below) > > Some details on the speedup brought by BSD ar: > > Below is a speed comparison of processing 5329 .o files (38 MB in > total) in create, list and extract mode of both ar. The benchmark was > done by the acp.sh script (you can find it in the tarball) which was > adapted from Jan Psota's Tar Comparison Program. > > outcast% sh acp.sh ~/arobj . > bsdar: BSD ar 1.0.0 - libarchive 2.4.10 > gnuar: GNU ar 2.15 [FreeBSD] 2004-05-23 > > best time of 3 repetitions > src=/home/kaiw/arobj, 38M in 5329 files > archive=./acp.a, extract to ./acptmp > > program operation real user system speed > bsdar create 2.17 0.26 0.68 15741 KB/s > gnuar create 8.80 5.30 2.89 3881 KB/s > > bsdar list 0.04 0.00 0.04 854000 KB/s > gnuar list 0.70 0.51 0.18 48800 KB/s > > bsdar extract 4.10 0.02 1.22 8331 KB/s > gnuar extract 4.95 0.68 1.65 6901 KB/s > > > Any feedback would be appreciated. After more thorough test, I'd > like to bring it to the tree as an alternative ar. I've been using this (and its updated versions) to build a large software project (file created by ar is 405MB) several times a day for the last week. I didn't encounter any problems during building or debugging. It's indeed faster :). Thanks a lot! Arjan