From owner-freebsd-stable@FreeBSD.ORG Wed Aug 9 22:31:59 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7475516A4DD for ; Wed, 9 Aug 2006 22:31:59 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CE1A43D4C for ; Wed, 9 Aug 2006 22:31:58 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so354847nfe for ; Wed, 09 Aug 2006 15:31:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YT97dUQXR2KNCLsxwU+Lt1PyZbnqvSjnA/+sOcKnCpptfEQj4xf+UKl/pA7TQvaIdl3FE0xOs2ypGFGvWriJwy67z4XOqxqggLRs7gDXh6q73a5U0x1M+CcS+ZBBLKHGjisCTEO4tgajJJzLWrEPyOy41/lWh4qAra+wBVnsnKE= Received: by 10.78.177.3 with SMTP id z3mr760380hue; Wed, 09 Aug 2006 15:31:58 -0700 (PDT) Received: by 10.78.143.11 with HTTP; Wed, 9 Aug 2006 15:31:58 -0700 (PDT) Message-ID: Date: Wed, 9 Aug 2006 17:31:58 -0500 From: "Nikolas Britton" To: "Matthias Andree" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-stable@freebsd.org Subject: Re: gzip is faster with -O3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2006 22:31:59 -0000 On 8/9/06, Matthias Andree wrote: > > 1. gzip isn't usually used to compress incompressible data. > > 2. use "time" to figure out how much CPU time it actually burns. > 5 GB are somewhat I/O bound, but gcc options don't help with that, so > CPU time is better than wallclock time. > dd if=/dev/zero of=testfile bs=1m count=5000 gzip comiled with -O3 # time nice -10 ./gzip -c9 testfile > /dev/null 73.187u 8.682s 2:08.41 63.7% 70+617k 40161+0io 0pf+0w gzip compiled with -O2 # time nice -10 ./gzip -c9 testfile > /dev/null 61.183u 8.468s 2:00.14 57.9% 58+609k 40162+0io 0pf+0w Now... what do all of those numbers mean, I've never used time before... thanks for the tip btw? -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/