Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2005 01:55:45 +0800
From:      Erich Dollansky <oceanare@pacific.net.sg>
To:        Nicolas Blais <nb_root@videotron.ca>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: amd64 optimized gcc?
Message-ID:  <4294BC21.8060004@pacific.net.sg>
In-Reply-To: <200505251317.22128.nb_root@videotron.ca>
References:  <200505251317.22128.nb_root@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Nicolas Blais wrote:

> Reference times for benchmark (5e+07 run of the algorithm):
> 
> (FreeBSD/i386)  Venice (S939, 512K L2 cache) Athlon64 3000 overclocked @ 2655 
> Mhz : 78.3072 s (638511 r/s)
>                 Note: Cool 'n' Quiet! Disabled in BIOS.
> 		Note: 1 G RAM
> 
> (FreeBSD/amd64)  Venice (S939, 512K L2 cache) Athlon64 3000 overclocked @ 2655 
> Mhz : 71.2521 s (701732 r/s)
>                 Note: Cool 'n' Quiet! Disabled in BIOS.
> 		Note: 1 G RAM
> 
The compiler has more registers when compiling for the AMD64 mode.

> Not surprising is the Pentium II :).  What is surprising is that amd64 FreeBSD 
> seems to execute code faster than i386 FreeBSD, so I'm wondering if gcc 
> (amd64) really optimizes code for the cpu. If it is, I would probably move my 
> httpd server to amd64...
> 
HTTPD does not gain from the registers but from memory.

Erich



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