Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Aug 2006 16:17:28 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        freebsd-stable@freebsd.org
Subject:   Re: gzip is faster with -O3
Message-ID:  <m3ejvqat8n.fsf@merlin.emma.line.org>
In-Reply-To: <ef10de9a0608090649k78d87350v638b2d3f1432e735@mail.gmail.com> (Nikolas Britton's message of "Wed, 9 Aug 2006 08:49:47 -0500")
References:  <ef10de9a0608090649k78d87350v638b2d3f1432e735@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Nikolas Britton" <nikolas.britton@gmail.com> writes:

> dd if=/dev/random of=testfile bs=1m count=5000

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.

> gzip compiled with -O3:
> # date ; nice -10 ./gzip -c9 testfile > testfile.gz ; date
> Wed Aug  9 08:01:21 CDT 2006

-- 
Matthias Andree



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