From owner-freebsd-amd64@FreeBSD.ORG Wed May 25 17:55:57 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BCD316A41C for ; Wed, 25 May 2005 17:55:57 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: from sarajevo.pacific.net.sg (sarajevo.pacific.net.sg [203.120.90.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 43A0843D1D for ; Wed, 25 May 2005 17:55:55 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 29445 invoked from network); 25 May 2005 17:55:51 -0000 Received: from unknown (HELO maxwell2.pacific.net.sg) (203.120.90.192) by sarajevo with SMTP; 25 May 2005 17:55:51 -0000 Received: from [192.168.0.107] ([210.24.246.101]) by maxwell2.pacific.net.sg with ESMTP id <20050525175551.CDDF1130.maxwell2.pacific.net.sg@[192.168.0.107]>; Thu, 26 May 2005 01:55:51 +0800 Message-ID: <4294BC21.8060004@pacific.net.sg> Date: Thu, 26 May 2005 01:55:45 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050514) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas Blais References: <200505251317.22128.nb_root@videotron.ca> In-Reply-To: <200505251317.22128.nb_root@videotron.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-amd64@freebsd.org Subject: Re: amd64 optimized gcc? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 17:55:57 -0000 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