From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 11 13:33:58 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0783E16A415 for ; Wed, 11 Oct 2006 13:33:58 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from antivirus.uni-rostock.de (mailrelay1.uni-rostock.de [139.30.8.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5037B43D55 for ; Wed, 11 Oct 2006 13:33:53 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from antivirus.exch.rz.uni-rostock.de ([127.0.0.1]) by antivirus.uni-rostock.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 11 Oct 2006 15:33:52 +0200 Received: from antivirus.uni-rostock.de (unverified) by antivirus.exch.rz.uni-rostock.de (Content Technologies SMTPRS 4.3.20) with ESMTP id for ; Wed, 11 Oct 2006 15:33:52 +0200 Received: from mail.uni-rostock.de ([139.30.8.11]) by antivirus.uni-rostock.de with Microsoft SMTPSVC (6.0.3790.1830); Wed, 11 Oct 2006 15:33:52 +0200 Received: from conversion-daemon.mail2.uni-rostock.de by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) id <0J6Z000013R6BZ@mail.uni-rostock.de> (original mail from joerg@britannica.bec.de) for freebsd-hackers@freebsd.org; Wed, 11 Oct 2006 15:33:51 +0200 (MEST) Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) with ESMTP id <0J6Z00IZL4C0BH@mail.uni-rostock.de> for freebsd-hackers@freebsd.org; Wed, 11 Oct 2006 15:33:36 +0200 (MEST) Received: by britannica.bec.de (Postfix, from userid 1000) id CCF975726; Wed, 11 Oct 2006 15:32:50 +0200 (CEST) Date: Wed, 11 Oct 2006 15:32:50 +0200 From: Joerg Sonnenberger In-reply-to: <200610110934.k9B9YASW081294@lurza.secnetix.de> To: freebsd-hackers@freebsd.org Mail-followup-to: freebsd-hackers@freebsd.org Message-id: <20061011133250.GA483@britannica.bec.de> MIME-version: 1.0 Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) References: <17707.64434.913943.549852@bhuda.mired.org> <200610110934.k9B9YASW081294@lurza.secnetix.de> X-OriginalArrivalTime: 11 Oct 2006 13:33:52.0533 (UTC) FILETIME=[E445B450:01C6ED39] Subject: Re: "tar -c|gzip" faster than "tar -cz"?!? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 13:33:58 -0000 On Wed, Oct 11, 2006 at 11:34:10AM +0200, Oliver Fromme wrote: > If gzip uses its own code instead of libz, that would > explain the results of my test, of course. So it seems > that gzip is 30% faster than libz ... quite significant, > I think. No, it isn't. I did benchmarks before importing the NetBSD version into DragonFly two years ago and gzip was *always* slower. zlib 1.2 added quite a number of performance improvements as well, so it shouldn't be the problem. I have no idea why it is that slow on FreeBSD -- I don't think the slightly older version we have in DragonFly 1.6 is the origin. The programs I run were from memory as well. Joerg