From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c3c048cdc321cd64,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-01-25 00:31:34 PST Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!sdd.hp.com!think.com!think.com!gary From: gary@gog.dfci.harvard.edu (Gary Beckmann) Newsgroups: comp.unix.osf.misc Subject: Optimization on ALPHA OSF1 ?? Date: 24 Jan 94 17:23:40 Organization: Joint Center for Radiation Therapy, Harvard Medical School Distribution: comp Message-ID: NNTP-Posting-Host: gog.dfci.harvard.edu I've been fooling around with some very simple minded benchmarks for the people I work for, and I've noticed that compiling the program with -O _slows_ down the loops doing floating point operations. I get a factor of about 0.7 speedup. DECstation Ultrix compilers give me a factor in the range of 2.5 to 4, on an HP I get a speedup of 1.6 to 2.6, all depending on which operations are being measured. Integer loops see a speed up of 3 to 4.7 on the alpha (not considering division for now). Ultrix sees speedups of 5.5 to 14.7 (wow!) and HP gets 3.2 to 5.9 speedups. Basically, we have a large computation product that runs slower on the Alpha than on the DECstation 5000/240 and the lower end HPs !!! Seems that optimization should run at least the same speed of the non-optimized code. Anything magic we need to do? Don't try to sell me KAP because DEC is already doing that -- seems like Chrysler putting a 4 cylinder in a mini-van. Of course you're going to buy the 6 cylinder! Thanks for any tips. -- -- Gary Beckmann gary@gog.dfci.harvard.edu 50 Binney Street voice: (617)735-8781 Boston, MA 02115 fax: (617)735-8772