Re: gzip is faster with -O3

2006-08-10 Thread Simon L. Nielsen
On 2006.08.09 17:53:01 -0500, Brooks Davis wrote: > [...] Poul-Henning Kamp has a nice (if probably > somewhat overkill for this case) writeup on doing benchmarking here: > > http://lists.freebsd.org/pipermail/freebsd-current/2004-January/019595.html It should be mentioned that this is in the Dev

Re: gzip is faster with -O3

2006-08-09 Thread Matthias Andree
On Wed, 09 Aug 2006, Nikolas Britton wrote: > On 8/9/06, Matthias Andree <[EMAIL PROTECTED]> 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 he

Re: gzip is faster with -O3

2006-08-09 Thread Brooks Davis
On Wed, Aug 09, 2006 at 05:31:58PM -0500, Nikolas Britton wrote: > On 8/9/06, Matthias Andree <[EMAIL PROTECTED]> 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

Re: gzip is faster with -O3

2006-08-09 Thread Nikolas Britton
On 8/9/06, Matthias Andree <[EMAIL PROTECTED]> 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.

Re: gzip is faster with -O3

2006-08-09 Thread [LoN]Kamikaze
Nikolas Britton wrote: > dd if=/dev/random of=testfile bs=1m count=5000 > > gzip compiled with -O3: > # date ; nice -10 ./gzip -c9 testfile > testfile.gz ; date > Wed Aug 9 08:01:21 CDT 2006 > Wed Aug 9 08:09:06 CDT 2006 > 465 Seconds. > > gzip compiled with -O2: > # date ; nice -10 ./gzip -c9

Re: gzip is faster with -O3

2006-08-09 Thread Matthias Andree
"Nikolas Britton" <[EMAIL PROTECTED]> 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

gzip is faster with -O3

2006-08-09 Thread Nikolas Britton
dd if=/dev/random of=testfile bs=1m count=5000 gzip compiled with -O3: # date ; nice -10 ./gzip -c9 testfile > testfile.gz ; date Wed Aug 9 08:01:21 CDT 2006 Wed Aug 9 08:09:06 CDT 2006 465 Seconds. gzip compiled with -O2: # date ; nice -10 ./gzip -c9 testfile > testfile.gz ; date Wed Aug 9 0