gcc 3.2 not faster
I thought that gcc 3.2 was supposed to be faster, however I have just done
some benchmarks to show the opposite:
GCC 2.95:
Version 1.93b write read putcNT getcNT putc getc putcU getcU
lyta 437 559 9052 9478 1694 1734 24757 48029
GCC 3.2:
Version 1.93b write read putcNT getcNT putc getc putcU getcU
441 568 7955 8573 1617 1698 18731 28544
putcU/getcU is putc_unlocked() and getc_unlocked().
putcNT/getcNT is putc() and getc() in a program that's linked without thread
support.
When linked with thread support putc/getc do extra locking which gives about
the same speed on both compilers.
The source to this is in http://www.coker.com.au/bonnie++/experimental/
--
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/ My home page
Reply to: