Path: utzoo!attcan!uunet!van-bc!ubc-cs!news-server.csri.toronto.edu!eecg.toronto.edu!leblanc From: leblanc@eecg.toronto.edu (Marcel LeBlanc) Newsgroups: comp.sys.amiga.tech Subject: SAS/C 5.10 Dhrystone 2.1 results Summary: 5.10 seems a little slower than 5.04 Message-ID: <1990Oct22.175350.13597@jarvis.csri.toronto.edu> Date: 22 Oct 90 21:53:50 GMT Lines: 50 After installing SAS/C 5.10 on my 2000, I was curious about any speed improvements that might result from compiling programs with 5.10 vs. 5.04. So I decided to compile Dhrystone 2.1 to test the integer/string performance (that's all I'm really concerned about since my primary use for the 2000 is software development). Anyway, I found the results interesting, so here they are for all to see: To compile, I used: lc -DTIME ... To link I used (c.o,$(OBJS),lcm.lib,lc.lib). Here are the options, with dhrystone/sec results (100K loops unless otherwise indicated): OPTIONS Lattice C 5.04 SAS/C 5.10 (none) 781.3 775.2 -cusrf 781.3 781.3 -cusrf -O 934.6 925.9 -cusrf -O -v 1000.5 983.6 (^^ 1e6 loops) (^^ 1e7 loops) -cusrf -O -v -DREG=register 1025.6 990.7 (^^ 1e6 loops) (^^ 1e7 loops) *NOTE: -v means no stack checking. The 5.10 results are only slightly lower than 5.04, so I'm really not concerned. I was never able to get dhrystone to compile properly with registerized parameters (-rr). I created prototypes for all functions (except Proc_1), but I always got the GURU. Also, when linking with lcmr.lib (5.10), blink could not find "_CXFERR". No problem with lcm.lib. One thing that disturbs me is the huge difference between these numbers and those posted by Martin Hunt of Commodore-Amiga: > 2500/30 3000 (16 MHz) 3000 (25 Mhz) 2000 > > Normal 5950 4300 6050 600 > Registers 6110 4400 6225 620 > 68020 6600 4770 6800 > 68020/Reg 6820 4970 7000 600??? 620??? this is ridiculous! He claims to have used "lc -v -O ...". What gives? Does this mean that the numbers for the A3000 are off too? My A3000 is still on order, so I can't verify the claim of 7000 Dhrys/sec. Comments or corrections? Marcel A. LeBlanc -- Electrical Eng. Computer Group, Univ. of Toronto ----------------------------------------------------------------------- leblanc@eecg.toronto.edu else: uunet!utcsri!eecg!leblanc