Re: gcc 3.2 not faster
On Wed, Jan 08, 2003 at 03:38:04PM +0100, Russell Coker wrote:
> 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/
High numbers good? Low numbers good? Looks like high numbers from the
above. Would you care to analyze the difference so that something can
be done about it, or to try it with gcc-snapshot?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
Reply to: