From: Martin Kahlert <martin.kahlert@mchp.siemens.de>
To: axp-list@redhat.com
Cc: scr@iis.fhg.de, robert@physiol.med.tu-muenchen.de, egcs@cygnus.com
Subject: Re: Performance measurements (thanks and conclusion)
Date: Thu, 25 Jun 1998 09:46:18 +0200 [thread overview]
Message-ID: <19980625094618.A26562@keksy.mchp.siemens.de> (raw)
In-Reply-To: <19980624170051.21290@haegar.physiol.med.tu-muenchen.de>; from Robert Wilhelm on Wed, Jun 24, 1998 at 05:00:51PM +0200
Quoting Robert Wilhelm (robert@physiol.med.tu-muenchen.de):
> > [Robert: could you please compile my code on your Alpha using
> > egcs and report your results to me]
>
> I get about 275 MFLOPS for my 533MHz 21164a for both egcs 1.0 and
> egcs-current with haifa enabled.
>
> If I use different local variables lfA*, egcs seems to shedule a bit
> better and I get 290 MFLOPS.
>
> Robert
I was really overwhelmed with the repsonse to this thread on
axp-list. Thanks a lot for all people who tried my source
and even tried to get more out of the compilers.
I tried both versions on my PPro 200:
Stefan Schroepfer's version:
pgcc:
85.98 MFLOPS
gcc-2.7.2.1:
97.10 MFLOPS
gcc-without double align:
95.46 MFLOPS
egcs-2.91.42:
84.06 MFLOPS
tcc:
17.20 MFLOPS
Robert Wilhelm's version:
pgcc:
81.62 MFLOPS
gcc-2.7.2.1:
98.81 MFLOPS
gcc-without double align:
98.81 MFLOPS
egcs-2.91.42:
83.44 MFLOPS
tcc:
16.44 MFLOPS
It seems that tcc is not the fastest and the most reliable
under the sun...
Can i conclude, that it's a good idea to insert as many local
vars as possible to get good results from compilers?
Now i have two questions:
-Why is it so difficult for gcc to transform the code
for(i=0;i<n;i++)
result[i]=a[i]+2*a[i+1]+3*a[i+2];
into something like
_tmp0=a[0];_tmp1=a[1];_tmp2=a[2];
for(i=0;i<n;i++)
{
result[i]=_tmp0+2*_tmp1+3*_tmp2;
_tmp0=_tmp1;
_tmp1=_tmp2;
_tmp2=a[i+2];
}
for itself? I think, especially in Fortran such things are a
common task.
-What's the reason for the performace loss between gcc-2.7.2.1
and egcs-2.91.42 - it's nearly 20%, that gcc-2.7.2.1 is better?
Thanks a lot,
Martin.
next prev parent reply other threads:[~1998-06-25 7:46 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-24 8:51 Performance measurements Martin Kahlert
1998-06-24 9:34 ` Robert Wilhelm
1998-06-24 19:54 ` Xsuse (Gloria X Server) Gavin
1998-06-24 20:50 ` B. James Phillippe
1998-06-24 23:29 ` Chris Ingrassia
1998-06-24 10:32 ` Performance measurements Stefan Schroepfer
1998-06-24 10:48 ` Martin Kahlert
1998-06-24 11:06 ` Martin Høy
1998-06-24 13:46 ` Stefan Schroepfer
1998-06-24 15:00 ` Robert Wilhelm
1998-06-24 15:16 ` Stefan Schroepfer
1998-06-25 7:46 ` Martin Kahlert [this message]
1998-06-24 15:25 ` Fabio Perroni
1998-06-24 15:28 ` Jeff Sturm
1998-06-24 15:59 ` Christopher C Chimelis
1998-06-24 17:19 ` Jeff Sturm
1998-06-24 18:12 ` Christopher C Chimelis
1998-06-24 19:05 ` Jeff Sturm
1998-06-24 20:38 ` Wes Bauske
1998-06-24 22:30 ` Jeff Sturm
1998-06-25 1:42 ` Richard Henderson
1998-06-25 1:48 ` Richard Henderson
1998-06-25 14:00 ` Jeff Sturm
1998-06-25 16:17 ` Richard Henderson
1998-06-27 14:30 ` Volker Barthelmann
1998-06-28 16:41 ` Jeff Sturm
1998-06-28 23:01 ` Volker Barthelmann
1998-06-29 18:11 ` Jim Paradis
1998-06-29 5:14 ` jrp
1998-06-24 16:05 ` Stefan Schroepfer
1998-06-24 16:58 ` Wes Bauske
1998-06-24 15:49 ` David S. Miller
[not found] ` <Pine.GSO.3.96.980624190510.27225p-100000@markab.dbai.tuwien.ac.at>
1998-06-25 7:59 ` Martin Kahlert
1998-06-26 1:26 ` Ryan Kirkpatrick
1998-06-26 14:45 ` Chris Ingrassia
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