🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #35603

Re: MacII/Compaq386 comparison

#35603
From: mcdonald
Date: Sun, 18 Dec 1988 04:04
47 lines
2608 bytes
Here are the results on the two small Fortran test programs that were posted:
They were done on an IBM PS2-80 at 16MHz with a 387. They should take
about 65 to 70% as long on a high class 20Mhz machine like a Compaq or
a Dell 310 (that is, the Model 80 is slow for a 16 MHz machine).

Neither program as listed was Fortran; there does not exist a "repeat"
keyword in either Fortran 66 or Fortran 77; about draft F8x I forget. 
However, the intent was obvious from the indentations so I fixed them up.

Program #1, ODE with trig functions.
Microsoft Fortran 4.01 compiled with
    fl /AM /4I4 /Ox y.for     
took 63 sec.

MicroWay NDP Fortran (a real 32 bit compiler, uses 32 bit mode)
    f77 -n2 -n3 -OLM y.for
took 34.6 sec.

Program #2, matrix operations; lots of loops
Microsoft Fortran 4.01 compiled with
     fl /AH /4I2 /Ox z.for
took 10.8 sec.

MicroWay NDP Fortran 
     f77 -n2 -n3 -OLM z.for
took 8.2 sec.

The results show that the 387 is slower for trig functions, better for
some other things.  Also, that a good 20Mhz 386-386 would be faster
than a Mac even for trig functions, but a real close call. It also
shows that a real 32 bit system will beat a 16 bit one (Microsoft
Fortran is basically 16 bit, NDP is all 32 bit). It is probably fair
to say that the speed ratios are quite different for the 68020 vs
the 80386 than for the 68881 vs the 80387. On Dhrystones, an integer-
string-subroutine call benchmark any respectable 386 system will
beat a MacII by about a factor of three (see comp.arch for proof).
These benchmarks were all REAL*4.  Changing to REAL*8 changes the results:
(NDP results) Problem 1 goes from 34.6 to 27.6. Problem 2 goes
from 8.2 to 10.2. That's right, the first one, with the trig functions
goes FASTER in REAL*8. Substantially faster.         

What this REALLY shows is that if you want to decide whether to buy
a MacII or a 386 on the basis of doing scientific or engineering
calculations in Fortran, you should benchmark a copy of the exact
problem you want to run most often.
Doug McDonald (mcdonald@uxe.cso.uiuc.edu)
Technical Details
Message-ID: <46100246@uxe.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!tank!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!mcdonald
References: <2416@ssc-vax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!tank!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!mcdonald
From: mcdonald@uxe.cso.uiuc.edu
Newsgroups: comp.sys.mac
Subject: Re: MacII/Compaq386 comparison
Message-ID: <46100246@uxe.cso.uiuc.edu>
Date: 18 Dec 88 04:04:00 GMT
References: <2416@ssc-vax.UUCP>
Lines: 47
Nf-ID: #R:ssc-vax.UUCP:2416:uxe.cso.uiuc.edu:46100246:000:2069
Nf-From: uxe.cso.uiuc.edu!mcdonald    Dec 17 22:04:00 1988