Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2006 17:31:58 -0500
From:      "Nikolas Britton" <nikolas.britton@gmail.com>
To:        "Matthias Andree" <matthias.andree@gmx.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: gzip is faster with -O3
Message-ID:  <ef10de9a0608091531n7d605bb5s49e266b13da6b855@mail.gmail.com>
In-Reply-To: <m3ejvqat8n.fsf@merlin.emma.line.org>
References:  <ef10de9a0608090649k78d87350v638b2d3f1432e735@mail.gmail.com> <m3ejvqat8n.fsf@merlin.emma.line.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/9/06, Matthias Andree <matthias.andree@gmx.de> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef10de9a0608091531n7d605bb5s49e266b13da6b855>