Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: forrest@nobozo.CS.Berkeley.EDU (Jon Forrest)
Subject: Unexpectedly Poor Performance of C Compiler on Alpha (OSF 1.2)
Date: 12 Mar 1993 23:12:11 GMT	[thread overview]
Message-ID: <1nr5cb$mn2@agate.berkeley.edu> (raw)

There seems to be a serious problem with the cc C compiler that
ships with Alpha OSF 1.2. This showed up when running the "bigtest"
test suite that's part of the flex distribution (get flex from
ftp.ee.lbl.gov). The problem is that the C compiler on the alpha
performs at almost the same speed as the C compiler on a DECStation
5000/133. Plus, on a clearly pathelogical example, the Alpha takes
over 9 times longer to compile a program. This happens even with the
optimizer turned off, although the results below don't show this.
Even without this one case, I would have expected the Alpha to
perform better than this.

The following is the edited output of what you see when you run
bigtest. (I changed the CC macro in the make file to CC = time cc).
The Ultrix example is from a DECStation 5000/133 with 48Mb and Ultrix
4.2a. The Alpha example is from a Alpha 4000/610 with 192Mb and
DEC OSF/1 V1.2 (Rev. 10). Note that this is the production release
so I'm allowed to publish performance numbers.

--- Ultrix ---
rm -f scan.c ; make COMPRESSION="-C" test
time cc -O -DULTRIX -c scan.c
       30.9 real        20.7 user         4.1 sys  
rm -f scan.c ; make COMPRESSION="-Ce" test
time cc -O -DULTRIX -c scan.c
       11.1 real         8.5 user         1.4 sys  
rm -f scan.c ; make COMPRESSION="-Cm" test
time cc -O -DULTRIX -c scan.c
       14.1 real        10.7 user         2.0 sys  
rm -f scan.c ; make COMPRESSION="-Cfe" test
time cc -O -DULTRIX -c scan.c
       13.4 real        10.3 user         1.7 sys  
rm -f scan.c ; make COMPRESSION="-CFe" test
time cc -O -DULTRIX -c scan.c
       14.0 real        10.8 user         1.8 sys  
rm -f scan.c ; make COMPRESSION="-Cf" test
time cc -O -DULTRIX -c scan.c
       35.6 real        28.3 user         4.5 sys  
rm -f scan.c ; make COMPRESSION="-CF" test
time cc -O -DULTRIX -c scan.c
       52.6 real        35.2 user         7.4 sys  
rm -f scan.c ; make
time cc -O -DULTRIX -c scan.c
       11.5 real         7.8 user         1.6 sys  


--- Alpha ---
rm -f scan.c ; make COMPRESSION="-C" test
time cc -O -c scan.c
real       21.3 user       14.2 sys         5.5

rm -f scan.c ; make COMPRESSION="-Ce" test
time cc -O -c scan.c
real       11.9 user        9.9 sys         0.9

rm -f scan.c ; make COMPRESSION="-Cm" test
time cc -O -c scan.c
real       13.6 user       10.5 sys         1.8

rm -f scan.c ; make COMPRESSION="-Cfe" test
time cc -O -c scan.c
real       14.8 user       10.7 sys         1.7

rm -f scan.c ; make COMPRESSION="-CFe" test
time cc -O -c scan.c
real       13.3 user       10.4 sys         1.8

rm -f scan.c ; make COMPRESSION="-Cf" test
time cc -O -c scan.c
real       30.2 user       18.4 sys         9.6

rm -f scan.c ; make COMPRESSION="-CF" test
time cc -O -c scan.c
real     9:51.3 user     9:13.9 sys        23.0		<<<<---

rm -f scan.c ; make
time cc -O -c scan.c
real       11.5 user        9.5 sys         0.7

-- 
Anything you read here is my opinion and in no way represents the Univ. of Cal.
Jon Forrest WB6EDM	 forrest@cs.berkeley.edu	 510-643-6764


                 reply	other threads:[~1993-03-12 23:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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