gzip is faster with -O3

Nikolas Britton nikolas.britton at gmail.com
Wed Aug 9 13:49:57 UTC 2006


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 08:19:14 CDT 2006
Wed Aug  9 08:27:06 CDT 2006
472 Seconds.

7 second difference, it's not much but I still wanted to share it with
the group.


-- 
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/


More information about the freebsd-stable mailing list