Article View: comp.sys.mac
Article #26159Re: Dhrystone 2
From: Oliver Steele
Date: Thu, 10 Mar 1988 01:51
Date: Thu, 10 Mar 1988 01:51
53 lines
2518 bytes
2518 bytes
All right, I'll try this again. Apologies if you see this twice; I
posted it before and it never showed up, so I'll try it again. I
posted the below-the-= to a local group; additions are:
I hope my results differ from Mr. Chow's because he used the LSC time(),
which grains to the second (minute?), while I used Ticks. I assumed
60Ticks/second; if there are instead n, multiply the below numbers by n/60
to get the Truth. I tried these on Macs with nothing unusual on them
except FadeToBlack; I think this runs off of GetNextEvent() so it doesn't
eat any time. I did the 32bit-int tests by changing ints to longs and
constants in arg lists to long constants; there were two of the latter.
======================================================================
To round things out, here are some more department dhries. LSC is
Lightspeed C; MPW is Macintosh Programmer's Workshop C. I didn't bother
much with the MacPlus -- it's too slow -- and I couldn't find an SE. Yes,
fans, it sometimes is faster not to use register variables (probably on
procedure-call-intensive programs, which have to do too much pushing and
popping, but I didn't look at the output code); and -mc68020 really is
faster than -mc68020 -q.
16 or 32 indicates how many bits ints were. Both compilers use 16-bit
ints by default, but this seemed to be comparing...
Machine Dhrystones/sec
Opt. level
No Registers Registers
================= ============ =========
Mac II
LSC16 2698 2925
LSC32 1910 1779
MPW16
no opt 2609 2608
-q 2734 2768
-mc68020 3043 3066
-q -mc68020 2997 3005
MPW32
no opt 2586 2569
-q 2690 2699
-mc68020 2984 2976
-q -mc68020 2921 2945
MacPlus
LSC16 785 715
LSC32 489 525
----------------------------------------------------------------------------
Oliver Steele ...!uunet!mcnc!unc!steele
steele@cs.unc.edu
"A sea urchin is the best way to comb the inside
of a hairy tube." -- Peter Wolfenden
Technical Details
Message-ID:
<1634@thorin.cs.unc.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!thorin!unc!steeleReferences:
<3996@batcomputer.tn.cornell.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!thorin!unc!steele From: steele@unc.cs.unc.edu (Oliver Steele) Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Re: Dhrystone 2 Message-ID: <1634@thorin.cs.unc.edu> Date: 10 Mar 88 01:51:24 GMT References: <3996@batcomputer.tn.cornell.edu> Sender: news@thorin.cs.unc.edu Reply-To: steele@unc.UUCP (Oliver Steele) Organization: University Of North Carolina, Chapel Hill Lines: 53