From: Christian Hasse <c.hasse@itm.rwth-aachen.de>
Subject: Compiler and performance
Date: 1998/08/31 [thread overview]
Message-ID: <35EADB4B.13E9456D@itm.rwth-aachen.de> (raw)
There has been a lot of discussion regarding
the quality of the gnu compilers in
comparison to DU compilers. We have a little
code to evaluate floating point performance for
different loop lengths. The loop looks like
do l =1, length
f(l) = c(1)*(a(l) + c(2)*(a(l) + c(3)*(a(l) + c(4)*
& (a(l) + c(5)*(a(l) + c(6))))))
enddo
c is just a array of constants and f and a are variables
We measure the time by calls to system functions
and look at MFLOPS over loop length. We used different
compilers, system is LX board/2MB cache and 533MHZ processor.
We were fairly dissapointed with the g77. We used egcs-1.0.3
with haifa enabled as well as egcs-1.0.2. Just to give you
some numbers
MFLOPS
length g77/egcs-1.0.3 DU PA-RISC/8000
100 107.8 373.3
~300
10825 78.7 172.3 ~300
104912 62.4 98.8
We tried several compile options without success.
Even a PII 300 was faster for almost all loop
lengths. The PA-RISC has about the same Specfp as
the Alpha.
We know that this is a rather crude test and that
a good compiler can optimize that very well. But
we are also not satisfied with the performance of the
Alpha for our "real life" codes. Coding that loop in
C yields exactly the same results. This is rather
discouraging especially knowing that Digital released
their compilers for Alpha/NT which gives much better results,
according to www.specbench.org.
I hope that Digital will release their compilers it for Linux.
Christian
next reply other threads:[~1998-08-31 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-31 4:00 Christian Hasse [this message]
1998-09-05 4:00 ` Compiler and performance rsimpson
1998-09-05 4:00 ` Toon Moene
1998-09-06 4:00 ` Christian Hasse
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