From: Lucas Carey <lcarey@ic.sunysb.edu>
Subject: Re: gcc versus compaq compiler performance
Date: Wed, 03 Jul 2002 07:26:50 GMT [thread overview]
Message-ID: <_GxU8.10957$6Y3.8700@nwrddc04.gnilink.net> (raw)
In-Reply-To: m3fzz1tmwc.fsf@salmon.parasoft.com
On Wed, 03 Jul 2002 01:12:48 -0400, Paul Pluzhnikov wrote:
> "mitusra" <mitsura@mits.mit> writes:
>
>> does anybody have any experience with the same program compiled with
>> GNU gcc and the Compaq compiler?
>
> I have a friend who is running some numerical simulations (Fortran) on
> Alpha/Linux. He got a 100% speedup *on his code* by recompiling with
> Compaq's f77 instead of g77 ...
>
> The results you'll get will depend on your code.
As always, YMMV, but here are my results for STREAMS benchmarks
an XP1000 (666mhz EV6) running Tru64 v5.1a
better speedup would probably be obtained with -arch=ev6 or whever the correct
syntax is.
runt: cc -fast
-------------------------------------------------------------
Function Rate (MB/s) RMS time Min time Max time
Copy: 780.1859 0.0272 0.0205 0.0352
Scale: 744.7066 0.0268 0.0215 0.0293
Add: 768.0000 0.0400 0.0312 0.0430
Triad: 767.9736 0.0414 0.0313 0.0469
runt: gcc (v3.0.3) -O3 -DU_ALPHA
-------------------------------------------------------------
Function Rate (MB/s) RMS time Min time Max time
Copy: 399.6014 0.0587 0.0400 0.0898
Scale: 381.0157 0.0602 0.0420 0.0986
Add: 431.1505 0.1496 0.0557 0.4150
Triad: 372.3588 0.0711 0.0645 0.0781
as you can see, cc is much faster for streams, if your app is memory
bound, this will be a great help.
My particular app is a C prog that spends ~50% of its time doing
1/sqrt(), and the majority of the other 50% doing other misc floating
point operations. for this gcc and cc are approx equal. (I lost my
benchmarks to a failed disk.) This is a bit of
a suprise, but I don't think that cc is as well optimized for the ev6 as
it was for ev5, based on the lack of work compaq seems to have put into
everything they inherited from DEC. gcc-2.9x was blown away by cc, but
3.0 seems to have closed the gap quite a bit. Make sure to use the
CXML/DXML libraries when you compile.
next prev parent reply other threads:[~2002-07-03 7:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-02 16:49 gcc versus compaq compiler performance mitusra
2002-07-02 20:16 ` Albert Chin-A-Young
2002-07-03 5:41 ` Nikola Milutinovic
2002-07-03 12:59 ` Paul A Sand
[not found] ` <afu40b$r1l$1@mercury.ev.co.yu>
2002-07-03 12:26 ` Peter da Silva
2002-07-04 7:00 ` Allen M. Cohen
2002-08-12 2:42 ` Nico Kadel-Garcia
2002-07-03 5:12 ` Paul Pluzhnikov
2002-07-03 7:26 ` Lucas Carey [this message]
2002-07-03 8:30 ` Hans Schwengeler
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox