* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-19 20:38 ` R. Lamberts
@ 1993-05-19 21:02 ` R. Lamberts
1993-05-20 0:35 ` Marcus J Ranum
` (4 subsequent siblings)
5 siblings, 0 replies; 53+ messages in thread
From: R. Lamberts @ 1993-05-19 21:02 UTC (permalink / raw)
From article <1993May19.203842.3272@donau.et.tudelft.nl>, by reinoud@einstein.et.tudelft.nl (R. Lamberts):
>
> HP735: 5.9 seconds
>
Oops - that's a HP730. Slip of the keyboard (or wishful thinking ;-).
- Reinoud
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-19 20:38 ` R. Lamberts
1993-05-19 21:02 ` R. Lamberts
@ 1993-05-20 0:35 ` Marcus J Ranum
1993-05-20 15:45 ` Loren Buchanan
1993-05-20 13:16 ` 100MHz Indigo just as fast as HP/ALPHA? Hal Berenson
` (3 subsequent siblings)
5 siblings, 1 reply; 53+ messages in thread
From: Marcus J Ranum @ 1993-05-20 0:35 UTC (permalink / raw)
>Indigo R3000 (!): 12.5 seconds
>Alpha: 10.9 seconds
>HP735: 5.9 seconds
SGI is real sharp about keeping up with the latest and best
compiler/optimizer tricks. They've also just generally done a pretty
good job with optimizing various oft-called library routines(*).
Back when I was at DEC I did a benchmark between an Indigo
and a DECSystem5000/240. Based on the clock rates of the systems,
one would expect the DECSystem to have been a mite under twice as
fast as the Indigo. The Indigo came in 6 times faster. Turns out
the version of malloc() that ships with ULTRIX is real slow. Once
malloc() was replaced, the SGI and the DEC machines ran about par,
with the DEC machine a hair faster.
Since both the DEC machine and the SGI had the MIPS compiler
suite, I ran the application under pixie and looked at the profiling
results. The DECSystem executed 1.7 times as many instructions as
the SGI to do the same work. Even stuff like fprintf(), the SGI spent
less instructions in. Often dramatically less.
The compiler guys DEC has working on Alpha compilers are
some really hot hackers. Remember that the Alpha compilers are a lot
newer than the MIPS compiler suite - once they get ironed out, look
for some major performance improvements.
Moral:
Work smarter not harder.
Track compiler technologies.
Profile and optimize libc and stdio.
mjr.
(* I have not seen source. I *assume* they have done this based on
how fast even basic stdio stuff performs)
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-20 0:35 ` Marcus J Ranum
@ 1993-05-20 15:45 ` Loren Buchanan
1993-05-21 1:28 ` Jeffrey Mogul
1993-05-21 9:43 ` Burkhard Neidecker-Lutz
0 siblings, 2 replies; 53+ messages in thread
From: Loren Buchanan @ 1993-05-20 15:45 UTC (permalink / raw)
In article <1tejns$2uf@sol.TIS.COM> mjr@tis.com (Marcus J Ranum) writes:
>>Indigo R3000 (!): 12.5 seconds
>>Alpha: 10.9 seconds
>>HP735: 5.9 seconds
Various benchmarks we have run here give the indication that our Crimson
(roughly the equivalent of an R4000 Indigo) is very roughly on par with
our HP720 (some things are better on the Crimson, some are better on the
HP). The SGI has the advantage on larger jobs due to three reasons: disk
I/O is faster, the 1Meg secondary cache, and it has three times the
memory (96Meg vs 32Meg on the HP). We expect the HP735s we have on order
to have much I/O that will be faster than our SGI (to be fair to SGI this
is because we have old slow recycled drives on it), and with twice the
clock speed and other improvements in the CPU (plus having 64Meg of RAM)
will result in the benchmarks running much faster on the HP than the SGI.
X-Windows performance is real good on the HP, but if want to render and
display polygons the Crimson Elan is much better and faster than the
HP720CRX.
The loaner DEC Alpha's we have had in here (one from DEC and the other
from Kubota Pacific) have been faster than both the Crimson and HP on
the various benchmarks I have run and are aware of, but I expect that
the HP735s will outperform the Alpha.
> SGI is real sharp about keeping up with the latest and best
>compiler/optimizer tricks. They've also just generally done a pretty
>good job with optimizing various oft-called library routines(*).
Yes, SGI does a good job in the details. Another area that they have
paid fair amount of attention to is I/O. In general they did a very
good job in designing the I/O system in the new Onyx/Challenge/Power
Challenge product lines. I already know of one application that will
run into an I/O bottleneck problem on the Onyx (but it is probably a
moot issue as I will not have the money to purchase an Onyx suitably
configured and options which would hit this bottleneck [anyone got
1 to 1.5 Million dollars they would care to share with me ;-) ]).
> The compiler guys DEC has working on Alpha compilers are
>some really hot hackers. Remember that the Alpha compilers are a lot
>newer than the MIPS compiler suite - once they get ironed out, look
>for some major performance improvements.
I know that they are working on this, but I have no idea of when it will
be available.
> Moral:
> Work smarter not harder.
We all need to do more of this, unfortunately it is not always obvious
where the smarter path lies.
> Track compiler technologies.
You also need to be aware of implementation details. One gotcha in the
Alpha architecture that I just found out, is that it is very poor at doing
context switches (there was a letter to editor in a recent issue of ACM
Communications that talked about this). So, if you are looking for a
box for 20 simultaneous users, I would not recommend an Alpha based product
(well at least a single CPU version of it). On the other hand, if it is
going to be used to run a single heavy duty code it may be the machine of
choice.
> Profile and optimize libc and stdio.
For end users, you need to have some concept of what influences various
architectural features will have on your application. It is always best
if you can run your application on the various choices before purchase.
Also just because X box is fastest (even on your application) does not
mean it is the best.
Good Luck & B Cing U
Buck
--
Loren Buchanan (buck@curie.nrl.navy.mil) | #include <standard.disclaimer>
NRL Code 5842, 4555 Overlook Ave. | #include <computer.graphics>
Washington, DC 20375 (202) 767-3884 | #include <electronic.music>
Phone tag, America's fastest growing business sport.
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-20 15:45 ` Loren Buchanan
@ 1993-05-21 1:28 ` Jeffrey Mogul
1993-05-21 13:34 ` Loren Buchanan
1993-05-21 9:43 ` Burkhard Neidecker-Lutz
1 sibling, 1 reply; 53+ messages in thread
From: Jeffrey Mogul @ 1993-05-21 1:28 UTC (permalink / raw)
In article <C7C14E.ACo@ra.nrl.navy.mil> buck@ra.nrl.navy.mil (Loren Buchanan) writes:
>You also need to be aware of implementation details. One gotcha in the
>Alpha architecture that I just found out, is that it is very poor at doing
>context switches (there was a letter to editor in a recent issue of ACM
>Communications that talked about this).
If you are referring to the letter on page 15 of the May 1993 issue ...
it's totally misinformed. The author writes
"Every instance of specialized functions such as a context switch are
handled in PAL code residing in main memory which operates orders of
magnitude slower than the hundreds of MHz that Alpha's CPU runs.
Performance of process intensive applications will then run closer to
memory speeds than process speeds."
I assume that he meant "processor speeds" in that last sentence. Anyway,
this is quite confused. PAL code is no different from any other Alpha
instructions, except that it runs with slightly different rules (interrupts
turned off, no "I-stream memory management traps", and implementation-
specific hardware functions are enabled).
In particular, PAL instructions can be cached just like all other Alpha
instructions. So, if they are executed frequently, they will run at
cache-hit speeds, not cache-miss speeds. (And if they aren't executed
frequently, then a few cache misses don't really matter.)
Any machine (Alpha, Sparc, PA-RISC, RIOS, MIPS, Pentium, etc.) that relies
on caching to get good performance will do poorly on "process-intensive"
applications if the effective working set is larger than will fit into
the caches. This has nothing to do with PAL code. I don't know how
the Alpha architecture or implementions (two different things, remember)
compare with other vendors' efforts on context-switch times, but I
really doubt it is "very poor." You could measure it with a benchmark,
except that you'd probably be measuring the operating system instead
of the hardware.
The letter makes some other debatable assertions. Don't believe
everything you read (especially in CACM!)
-Jeff
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-21 1:28 ` Jeffrey Mogul
@ 1993-05-21 13:34 ` Loren Buchanan
1993-05-21 16:08 ` Marc Evans
0 siblings, 1 reply; 53+ messages in thread
From: Loren Buchanan @ 1993-05-21 13:34 UTC (permalink / raw)
In article <1thb8p$ruj@usenet.pa.dec.com> mogul@pa.dec.com (Jeffrey Mogul) writes:
>In article <C7C14E.ACo@ra.nrl.navy.mil> I wrote:
>>You also need to be aware of implementation details. One gotcha in the
>>Alpha architecture that I just found out, is that it is very poor at doing
>>context switches (there was a letter to editor in a recent issue of ACM
>>Communications that talked about this).
>
>The letter makes some other debatable assertions. Don't believe
>everything you read (especially in CACM!)
As a few email messages pointed out to me (plus other postings) that the
issue of the PAL is moot. Even at 500 context switches per second the
overhead is going to be a few milliseconds. This does not explain the
poor behaviour we have seen with the two demo machines we had here (the
first had beta OSF/1). When a I/O bound program is running, user response
time is very poor.
B Cing U
Buck
--
Loren Buchanan (buck@curie.nrl.navy.mil) | #include <standard.disclaimer>
NRL Code 5842, 4555 Overlook Ave. | #include <computer.graphics>
Washington, DC 20375 (202) 767-3884 | #include <electronic.music>
Phone tag, America's fastest growing business sport.
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-21 13:34 ` Loren Buchanan
@ 1993-05-21 16:08 ` Marc Evans
0 siblings, 0 replies; 53+ messages in thread
From: Marc Evans @ 1993-05-21 16:08 UTC (permalink / raw)
In article <C7Dppt.Hqr@ra.nrl.navy.mil>, buck@ra.nrl.navy.mil (Loren Buchanan) writes:
|> As a few email messages pointed out to me (plus other postings) that the
|> issue of the PAL is moot. Even at 500 context switches per second the
|> overhead is going to be a few milliseconds. This does not explain the
|> poor behaviour we have seen with the two demo machines we had here (the
|> first had beta OSF/1). When a I/O bound program is running, user response
|> time is very poor.
Get the newest version of the OS, as there was a scheduler bug found that was
likely causing the problem that you describe. There *may* even be a patch of
some form available through customer support.
- Marc
--
===========================================================================
Marc Evans - Marc@Synergytics.COM | Synergytics (603)635-8876
WB1GRH - WB1GRH@WA1YTW.NH.USA | 21 Hinds Ln, Pelham, NH 03076
---------------------------------------------------------------------------
Unix and X11 Software Consultant
===========================================================================
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-20 15:45 ` Loren Buchanan
1993-05-21 1:28 ` Jeffrey Mogul
@ 1993-05-21 9:43 ` Burkhard Neidecker-Lutz
1993-05-21 19:16 ` R. Lamberts
1993-05-25 23:49 ` please help Deborah Berman
1 sibling, 2 replies; 53+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-05-21 9:43 UTC (permalink / raw)
Without a lot more information about the benchmark it is impossible to
tell what the problem for the Alpha here is. Let's say it is not
typical for a 33 Mhz R3000 to outperform any Alpha model.
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-21 9:43 ` Burkhard Neidecker-Lutz
@ 1993-05-21 19:16 ` R. Lamberts
1993-05-22 8:02 ` Bill Broadley
1993-05-25 23:49 ` please help Deborah Berman
1 sibling, 1 reply; 53+ messages in thread
From: R. Lamberts @ 1993-05-21 19:16 UTC (permalink / raw)
From article <1ti87iINNpq8@usenet.pa.dec.com>, by neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz):
>
> Without a lot more information about the benchmark it is impossible to
> tell what the problem for the Alpha here is. Let's say it is not
> typical for a 33 Mhz R3000 to outperform any Alpha model.
>
> Burkhard Neidecker-Lutz
>
It's probably the slow divide of the Alpha. Alpha (21064) seems to
have a few serious performance problems with specific operations
(FP latency, esp divide, byte access). So it'll do well on 'typical'
code (SPEC!), but may not be so fast on specific problems.
Actually the R3k performance I mentioned is even better (I mistakenly
quoted time including copying to frame buffer), and practically equals
that of Alpha. I didn't realize Alpha did bad on divides and byte
writes; I just picked the perspective rendering code I was working
on, which *does* divides and byte writes. The resulting performance
is rather revealing, isn't it? Maybe it was not such a good idea of
the designers of Alpha to take the RISC approach that far.
I won't buy an Alpha anytime soon.
- Reinoud
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-21 19:16 ` R. Lamberts
@ 1993-05-22 8:02 ` Bill Broadley
1993-05-23 16:22 ` Justin Sullivan
0 siblings, 1 reply; 53+ messages in thread
From: Bill Broadley @ 1993-05-22 8:02 UTC (permalink / raw)
Just thought I'd mention I often see a 50% speedup
on FP intensive code going from GCC to hp's CC on FP
intense code.
Which isn't surprising when you consider the pipelines, multiple
fp issue, fp latencies all of which HP has optimised for and gcc has not.
The latest gcc on HP may have remedied this somewhat.
--
Bill 1st> Broadley@neurocog.lrdc.pitt.edu
Broadley@schneider3.lrdc.pitt.edu <2nd 3rd> Broadley+@pitt.edu
Linux is great. Bike to live, live to bike. PGP-ok
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-22 8:02 ` Bill Broadley
@ 1993-05-23 16:22 ` Justin Sullivan
0 siblings, 0 replies; 53+ messages in thread
From: Justin Sullivan @ 1993-05-23 16:22 UTC (permalink / raw)
broadley@pitt.edu (Bill Broadley) writes:
>Just thought I'd mention I often see a 50% speedup
>on FP intensive code going from GCC to hp's CC on FP
>intense code.
>Which isn't surprising when you consider the pipelines, multiple
>fp issue, fp latencies all of which HP has optimised for and gcc has not.
>The latest gcc on HP may have remedied this somewhat.
The folks at Utah have done an excellent job tuning gcc 2.3.3 for
PA-RISC. They have optimized the compiler and the more important tools
(gdb, etc) for HP's. I'm not sure if they have done gcc 2.4.0 yet, but
last I heard, the initial release was known (by the GNU folks) to have a
number of bugs which were to be fixed very soon..
--
* Justin P. Sullivan * justin@engr.uky.edu (Internet) *
* System Administrator * justin@mik.uky.edu (NeXTMail) *
* Computational Fluid Dynamics * JUSTIN@UKCC (BITNET) *
* (606) 257-2268 * ukma!ukecc!justin (UUCP) *
^ permalink raw reply [flat|nested] 53+ messages in thread
* please help
1993-05-21 9:43 ` Burkhard Neidecker-Lutz
1993-05-21 19:16 ` R. Lamberts
@ 1993-05-25 23:49 ` Deborah Berman
1 sibling, 0 replies; 53+ messages in thread
From: Deborah Berman @ 1993-05-25 23:49 UTC (permalink / raw)
If anyone has programmed an SGI using a wacom mouse tablet (or any other
mouse tablet for that matter), please help me. I want to write an
application which will use the pressure-sensitive mouse tablet as an
input device. The application itself will be written in GL and Motif.
And the SGI I am using is an Iris Indigo 4000 with Irix 4.0.5.
Thank you! Any helpful comments or experiences would be very appreciated.
I'm obviously not the first person who has needed to do this, but I keep
running up against brick walls.
Debbie Berman
--
Outside of a dog, a book is man's best friend...
Inside of a dog, it's too dark to read. (Groucho Marx)
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-19 20:38 ` R. Lamberts
1993-05-19 21:02 ` R. Lamberts
1993-05-20 0:35 ` Marcus J Ranum
@ 1993-05-20 13:16 ` Hal Berenson
1993-05-20 15:39 ` Stan Jensen
1993-05-21 18:22 ` Walter Underwood
` (2 subsequent siblings)
5 siblings, 1 reply; 53+ messages in thread
From: Hal Berenson @ 1993-05-20 13:16 UTC (permalink / raw)
In article <1993May19.203842.3272@donau.et.tudelft.nl>, reinoud@einstein.et.tudelft.nl (R. Lamberts) writes...
>
>Indigo R3000 (!): 12.5 seconds
>Alpha: 10.9 seconds
>HP735: 5.9 seconds
>
Which Alpha? Which graphics subsystem? What O/S? What version of the C
compiler (is it DEC C?). Etc.
To put the above in perspective you could put an Intel line up above and
run an 80386 with no FP chip and an unaccelerated ISA SVGA board up there and
imply the results were for a Pentium with an accelerated VESA-based
board.
.............................................................................
Hal Berenson
Home: 71640.3535@compuserve.com
Work: berenson@nova.enet.dec.com
-- Disclaimer: Opinions expressed here are my own and should not be
construed as representing the views of my employer or its employees,
officers, directors, or stockholders. --
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-20 13:16 ` 100MHz Indigo just as fast as HP/ALPHA? Hal Berenson
@ 1993-05-20 15:39 ` Stan Jensen
0 siblings, 0 replies; 53+ messages in thread
From: Stan Jensen @ 1993-05-20 15:39 UTC (permalink / raw)
In article <1993May20.132338.22147@dbased.nuo.dec.com>, berenson@nova.enet.dec.com (Hal Berenson) writes:
|>
|> In article <1993May19.203842.3272@donau.et.tudelft.nl>, reinoud@einstein.et.tudelft.nl (R. Lamberts) writes...
|> >
|> >Indigo R3000 (!): 12.5 seconds
|> >Alpha: 10.9 seconds
|> >HP735: 5.9 seconds
|> >
|>
|> Which Alpha? Which graphics subsystem? What O/S? What version of the C
|> compiler (is it DEC C?). Etc.
|>
|> To put the above in perspective you could put an Intel line up above and
|> run an 80386 with no FP chip and an unaccelerated ISA SVGA board up there and
|> imply the results were for a Pentium with an accelerated VESA-based
|> board.
As long as we're asking questions, why are we comparing the Indigo R3000,
which has a 33 MHz clock, when the Subject line refers to an Indigo R4000,
which has a 100 MHz internal clock (50 MHz external)? Apples & oranges?
-------------------------------------------------------------------------
Stan Jensen, Systems Engineer for "SGI Express" stanj@corp.sgi.com
Silicon Graphics Inc., M/S 14L-120 Phone:(415)390-5822
P.O. Box 7311, 1350 Charleston Road FAX: (415)962-1589
Mt. View, CA 94039-7311 "I (heart) Tonks"
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-19 20:38 ` R. Lamberts
` (2 preceding siblings ...)
1993-05-20 13:16 ` 100MHz Indigo just as fast as HP/ALPHA? Hal Berenson
@ 1993-05-21 18:22 ` Walter Underwood
1993-05-25 19:47 ` Jos van Eijndhoven
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
1993-05-25 15:29 ` Martin Preston
5 siblings, 1 reply; 53+ messages in thread
From: Walter Underwood @ 1993-05-21 18:22 UTC (permalink / raw)
R. Lamberts (reinoud@einstein.et.tudelft.nl) wrote:
: Indigo R3000 (!): 12.5 seconds
: Alpha: 10.9 seconds
: HP735: 5.9 seconds (later corrected to be a 730)
: This was done with cc on Indigo and Alpha, gcc on HP.
Is there some reason that you didn't use HP's compiler on the 730?
Much of the string has been about compiler technology, so why not
use compilers from the vendor?
wunder
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-21 18:22 ` Walter Underwood
@ 1993-05-25 19:47 ` Jos van Eijndhoven
0 siblings, 0 replies; 53+ messages in thread
From: Jos van Eijndhoven @ 1993-05-25 19:47 UTC (permalink / raw)
In article <C7E30w.LpK@hplntx.hpl.hp.com> wunder@hpl.hp.com (Walter Underwood) writes:
>R. Lamberts (reinoud@einstein.et.tudelft.nl) wrote:
>: Indigo R3000 (!): 12.5 seconds
>: Alpha: 10.9 seconds
>: HP735: 5.9 seconds (later corrected to be a 730)
>
>: This was done with cc on Indigo and Alpha, gcc on HP.
>
>Is there some reason that you didn't use HP's compiler on the 730?
>Much of the string has been about compiler technology, so why not
>use compilers from the vendor?
Yes!
And don't forget to use '+O3 -J' as optimization options to the HP cc.
Our experience is that it speeds up some (fp intensive) programs
with a factor of 2 over just '-O'.
--
Dr. Ir. Jos T.J. van Eijndhoven
Dept. of Elec. Eng. phone: +31-40-473612
Eindhoven Univ. of Technology, P.O.box 513 fax: +31-40-464527
5600 MB Eindhoven, The Netherlands email: jos@es.ele.tue.nl
^ permalink raw reply [flat|nested] 53+ messages in thread
* BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-19 20:38 ` R. Lamberts
` (3 preceding siblings ...)
1993-05-21 18:22 ` Walter Underwood
@ 1993-05-25 3:03 ` R. Lamberts
1993-05-25 7:46 ` Dave Olson
` (6 more replies)
1993-05-25 15:29 ` Martin Preston
5 siblings, 7 replies; 53+ messages in thread
From: R. Lamberts @ 1993-05-25 3:03 UTC (permalink / raw)
Note: the observed remarkable slowness of an Alpha system seems
to be partly due to a compiler bug. I tried compiling the same
sources, with the same options, to be confronted with optimizer
core-dumps. Compiling the same code with -O1 in stead of -O2
produced faster code than before... The old binary which
somehow got through the optimizer still runs at the reported
'speed'.
So the Alpha people can relax now... Or can they? Read on.
I hacked up a little benchmark (unaware of the compiler bug).
The benchmark compiles without a problem. It consists of a
simplified version of the performance bottleneck in the
original, with some hardwired values tossed around to make
it work. Notably some (byte!) accesses to large data structures
have been omitted/replaced. Source is appended below.
Results so far:
system | time (sec.) | cc options
-------------------------------------------
Sun IPC | 65.1 | -O2 -fsingle
Indigo R3000 | 23.7 | -O2 -ansi
Indigo R3000 | 16.5 | *
DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
HP 730 | 5.0 | +O2 +r
* - with trivial tuning of compiler output for R3000. Tuning
is not needed for R4000.
Maybe some kind soul could add R4000 results (or results for
the newer HP systems).
Well, what do you think? I'm still rather unimpressed with the
Alpha results - somewhere between an old 50 MHz PA-RISC and a
33 MHz R3000... Can we expect much better from compilers soon?
- Reinoud
/*----------------------------------------------------------------------------
Andromeda1 benchmark
----------------------------------------------------------------------------*/
#include <stdlib.h>
#include <string.h>
main()
{
register float d_xwx, d_ywx, d_zwx;
register float d_xwp, d_ywp, d_zwp;
register float d_xwz, d_ywz, d_zwz;
register int k, d_c;
register float d_z;
register float d_zp, d2_x, d2_y;
register unsigned char *mpix;
float d_xwi, d_ywi, d_zwi;
int i, j;
unsigned char pix[1048576];
float suzy;
mpix=pix+524800;
suzy=atof("0.0");
d_xwx=1018.88+suzy;
d_ywx=1.024+suzy;
d_zwx= -0.1+suzy;
d_xwz=102.4+suzy;
d_ywz=880.64+suzy;
d_zwz=0.5+suzy;
for (i=0; i<10; i++)
{
memset(pix, 0, 1048576);
d_xwp= -574095.375+suzy;
d_ywp=261619.71875+suzy;
d_zwp= -2713.120117-i+suzy;
d_xwi=d_xwp;
d_ywi=d_ywp;
d_zwi=d_zwp;
for (j=0; j<1024; j++)
{
d_z=0;
d_zp=d_z*d_zwz+d_zwp;
d_zwp+=d_zwx;
d2_y=(d_z*d_ywz+d_ywp)/d_zp;
d_ywp+=d_ywx;
d2_x=(d_z*d_xwz+d_xwp)/d_zp;
d_xwp+=d_xwx;
for (k=1; k<1024; k++)
{
d_z=(float)(k&0xfec);
d_zp=d_z*d_zwz+d_zwp;
d_zwp+=d_zwx;
mpix[((int)d2_y<<10)-(int)d2_x]=k-1;
d2_y=(d_z*d_ywz+d_ywp)/d_zp;
d_ywp+=d_ywx;
d2_x=(d_z*d_xwz+d_xwp)/d_zp;
d_xwp+=d_xwx;
}
mpix[((int)d2_y<<10)-(int)d2_x]=k-1;
d_xwi-= -102.4;
d_ywi-=512.0;
d_zwi-= -0.86;
d_xwp=d_xwi;
d_ywp=d_ywi;
d_zwp=d_zwi;
}
}
return 0;
}
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
@ 1993-05-25 7:46 ` Dave Olson
1993-05-26 5:44 ` Hans Mayer
1993-05-25 10:29 ` Burkhard Neidecker-Lutz
` (5 subsequent siblings)
6 siblings, 1 reply; 53+ messages in thread
From: Dave Olson @ 1993-05-25 7:46 UTC (permalink / raw)
In <1993May25.030345.23916@donau.et.tudelft.nl> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
| Results so far:
|
| system | time (sec.) | cc options
| -------------------------------------------
| Sun IPC | 65.1 | -O2 -fsingle
| Indigo R3000 | 23.7 | -O2 -ansi
| Indigo R3000 | 16.5 | *
| DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
| HP 730 | 5.0 | +O2 +r
|
| * - with trivial tuning of compiler output for R3000. Tuning
| is not needed for R4000.
Simple compile (cc -O) is 13.5 seconds (real time; elapsed) on an
r4k Indigo. cc -O -mips2 is 9.5 seconds. Using the KAP frontend
stuff (cc -O -mips2 -sopt,-o=5,-inline ), it drops to 8.6; more
playing around with options might drop it a bit more (I'm no
expert in compilation flags). That's with the 4.1 IDO compilers
for 4.0.5 and beyond.
So for this test at least, the 730 (and therefore the 735) are definitely
faster than the r4k Indigo at 100 MHz, and the 150 MHz Indigo will
probably be very close to the 730 (but presumably still slower than
the 735).
--
Let no one tell me that silence gives consent, | Dave Olson
because whoever is silent dissents. | Silicon Graphics, Inc.
Maria Isabel Barreno | olson@sgi.com
PS: I start my sabbatical 29 May, ask those questions now ;)
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 7:46 ` Dave Olson
@ 1993-05-26 5:44 ` Hans Mayer
0 siblings, 0 replies; 53+ messages in thread
From: Hans Mayer @ 1993-05-26 5:44 UTC (permalink / raw)
In <i49agdm@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
>In <1993May25.030345.23916@donau.et.tudelft.nl> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
>| Results so far:
>|
>| system | time (sec.) | cc options
>| -------------------------------------------
>| Sun IPC | 65.1 | -O2 -fsingle
>| Indigo R3000 | 23.7 | -O2 -ansi
>| Indigo R3000 | 16.5 | *
>| DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
>| HP 730 | 5.0 | +O2 +r
>|
>| * - with trivial tuning of compiler output for R3000. Tuning
>| is not needed for R4000.
>Simple compile (cc -O) is 13.5 seconds (real time; elapsed) on an
>r4k Indigo. cc -O -mips2 is 9.5 seconds. Using the KAP frontend
>stuff (cc -O -mips2 -sopt,-o=5,-inline ), it drops to 8.6; more
>playing around with options might drop it a bit more (I'm no
>expert in compilation flags). That's with the 4.1 IDO compilers
>for 4.0.5 and beyond.
I was interested how my machine compares :-)
SPARCstation-10/30, SunOS Release 4.1.3 (no performance patches applied),
bundled C compiler.
{venus:29} cc -O2 bench.c
{venus:30} time a.out
17.9u 0.0s 0:18 99% 0+1208k 2+0io 1pf+0w
{venus:31} cc -O2 -fsingle bench.c
{venus:32} time a.out
10.5u 0.0s 0:10 99% 0+1204k 0+0io 0pf+0w
-Hans
--
Hans J. Mayer, mayer@gmd.de
German National Research Center for Computer Science (GMD)
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
1993-05-25 7:46 ` Dave Olson
@ 1993-05-25 10:29 ` Burkhard Neidecker-Lutz
1993-05-26 7:03 ` Eero Pajarre
1993-05-26 8:40 ` Burkhard Neidecker-Lutz
1993-05-25 13:49 ` Simon Leinen
` (4 subsequent siblings)
6 siblings, 2 replies; 53+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-05-25 10:29 UTC (permalink / raw)
In article <1993May25.030345.23916@donau.et.tudelft.nl> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
>
>So the Alpha people can relax now... Or can they? Read on.
Unfortunately, no.
>it work. Notably some (byte!) accesses to large data structures
>have been omitted/replaced. Source is appended below.
Byte access isn't the culprit.
>Results so far:
>
>system | time (sec.) | cc options
>-------------------------------------------
>Sun IPC | 65.1 | -O2 -fsingle
>Indigo R3000 | 23.7 | -O2 -ansi
>Indigo R3000 | 16.5 | *
>DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
>HP 730 | 5.0 | +O2 +r
>
> Can we expect much better from compilers soon?
Yes, but not as good as one would like:
DEC OSF/1 T1.3-3, cc -migrate (aka GEM C) -O4:
DEC 3000-500 8.6 seconds
> d_z=(float)(k&0xfec); 16 %
> mpix[((int)d2_y<<10)-(int)d2_x]=k-1; 46 %
These two lines together account for about 60 % of the overall benchmark
time ! Byte access is not the culprit, changing the definition of mpix & pix
to "int" changes the benchmark time just to 8.4 seconds.
What is hurting the Alpha is the conversion between integer and floating
point values. Because there are no instructions to move values between
floating point and integer registers, each conversion (apart from the
convert instructions) translates to a load and a store as well. Allthough
the merging write buffer gets a lot of that traffic caught it still ties
up the machine (from a raw cycle perspective "pixie" would predict this
beast to go in 2.2 seconds, but it actually is *memory-bound* on the Alpha).
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 10:29 ` Burkhard Neidecker-Lutz
@ 1993-05-26 7:03 ` Eero Pajarre
1993-05-26 21:23 ` Doug Siebert
1993-05-26 8:40 ` Burkhard Neidecker-Lutz
1 sibling, 1 reply; 53+ messages in thread
From: Eero Pajarre @ 1993-05-26 7:03 UTC (permalink / raw)
In article <1tssdiINNak1@usenet.pa.dec.com> neideck@nestvx.enet.dec.com
(Burkhard Neidecker-Lutz) writes:
>> In article <1993May25.030345.23916@donau.et.tudelft.nl>
>> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
>> >Results so far:
>> >
>> >system | time (sec.) | cc options
>> >-------------------------------------------
>> >Sun IPC | 65.1 | -O2 -fsingle
>> >Indigo R3000 | 23.7 | -O2 -ansi
>> >Indigo R3000 | 16.5 | *
>> >DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
>> >HP 730 | 5.0 | +O2 +r
>> >
>> Yes, but not as good as one would like:
>> DEC OSF/1 T1.3-3, cc -migrate (aka GEM C) -O4:
>> DEC 3000-500 8.6 seconds
>> > d_z=(float)(k&0xfec); 16 %
>> > mpix[((int)d2_y<<10)-(int)d2_x]=k-1; 46 %
>> These two lines together account for about 60 % of the overall benchmark
>> time ! Byte access is not the culprit, changing the definition of mpix & pix
>> to "int" changes the benchmark time just to 8.4 seconds.
>> What is hurting the Alpha is the conversion between integer and floating
>> point values. Because there are no instructions to move values between
>> floating point and integer registers, each conversion (apart from the
>> convert instructions) translates to a load and a store as well. Allthough
>> the merging write buffer gets a lot of that traffic caught it still ties
>> up the machine (from a raw cycle perspective "pixie" would predict this
>> beast to go in 2.2 seconds, but it actually is *memory-bound* on the Alpha).
According to my knowledge PA-RISC also doesn't have
fp register -> integer register moves, it also has to do
conversions by using memory.
Still on a HP 735 (PA-RISC 7100 99 MHz) the benchmark runs
in about 2.7 seconds...
(compiled with cc -O -Aa (the -Aa means ANSI mode which
doesn't always convert fp to double))
eero
--
------------------------------------------------------------
Eero Pajarre eero@cs.tut.fi
tel: +358-31-161874 Tampere University of Technology
fax: +358-31-161857 PO Box 553, SF-33101 Tampere, FINLAND
------------------------------------------------------------
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-26 7:03 ` Eero Pajarre
@ 1993-05-26 21:23 ` Doug Siebert
1993-05-27 0:37 ` R. Lamberts
1993-05-29 12:42 ` BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA? Hugo Eide Gunnarsen
0 siblings, 2 replies; 53+ messages in thread
From: Doug Siebert @ 1993-05-26 21:23 UTC (permalink / raw)
eero@cs.tut.fi (Eero Pajarre) writes:
>In article <1tssdiINNak1@usenet.pa.dec.com> neideck@nestvx.enet.dec.com
> (Burkhard Neidecker-Lutz) writes:
>>> In article <1993May25.030345.23916@donau.et.tudelft.nl>
>>> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
>>> >Results so far:
>>> >
>>> >system | time (sec.) | cc options
>>> >-------------------------------------------
>>> >Sun IPC | 65.1 | -O2 -fsingle
>>> >Indigo R3000 | 23.7 | -O2 -ansi
>>> >Indigo R3000 | 16.5 | *
>>> >DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
>>> >HP 730 | 5.0 | +O2 +r
>>> >
>>> Yes, but not as good as one would like:
>>> DEC OSF/1 T1.3-3, cc -migrate (aka GEM C) -O4:
>>> DEC 3000-500 8.6 seconds
>>> > d_z=(float)(k&0xfec); 16 %
>>> > mpix[((int)d2_y<<10)-(int)d2_x]=k-1; 46 %
>>> These two lines together account for about 60 % of the overall benchmark
>>> time ! Byte access is not the culprit, changing the definition of mpix & pix
>>> to "int" changes the benchmark time just to 8.4 seconds.
>>> What is hurting the Alpha is the conversion between integer and floating
>>> point values. Because there are no instructions to move values between
>>> floating point and integer registers, each conversion (apart from the
>>> convert instructions) translates to a load and a store as well. Allthough
>>> the merging write buffer gets a lot of that traffic caught it still ties
>>> up the machine (from a raw cycle perspective "pixie" would predict this
>>> beast to go in 2.2 seconds, but it actually is *memory-bound* on the Alpha).
>According to my knowledge PA-RISC also doesn't have
>fp register -> integer register moves, it also has to do
>conversions by using memory.
>Still on a HP 735 (PA-RISC 7100 99 MHz) the benchmark runs
>in about 2.7 seconds...
>(compiled with cc -O -Aa (the -Aa means ANSI mode which
>doesn't always convert fp to double))
Try it with +O3 +ESlit -Wl,-a,archive; I've found those options produce the
fastest code, at least for what I've worked with. The +O3 gives the highest
optimization, the +ESlit puts string literals in read-only memory (better for
write-back cache when they are read) and the -Wl,-a,archive uses archive
libraries instead of shared libraries, which reduces start-up overhead as
well as the overhead of calling them. I'd be interested to see how a 735
does with these options, that would be about as good as an HP 735 can get.
(Nevermind that this whole thread is pretty silly, we are trading a single
benchmark of dubious quality for the whole SPEC suite which is presumably
better :-) )
--
/-----------------------------------------------------------------------------\
| Doug Siebert | "I don't have to take this abuse |
| Internet: dsiebert@isca.uiowa.edu | from you - I've got hundreds of |
| NeXTMail: dsiebert@chop.isca.uiowa.edu | people waiting in line to abuse |
| ICBM: 41d 39m 55s N, 91d 30m 43s W | me!" Bill Murray, Ghostbusters |
\-----------------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-26 21:23 ` Doug Siebert
@ 1993-05-27 0:37 ` R. Lamberts
1993-05-27 11:19 ` Burkhard Neidecker-Lutz
1993-05-29 12:42 ` BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA? Hugo Eide Gunnarsen
1 sibling, 1 reply; 53+ messages in thread
From: R. Lamberts @ 1993-05-27 0:37 UTC (permalink / raw)
Could someone please send me Alpha gcc assembly output for the
benchmark? Or, even better, could someone with knowledge of
Alpha try to figure why gcc does so much better than cc?
The 3000/500 system I worked on did not have gcc installed... And
now the (demo) system is gone. (So don't bother sending binaries,
just assembly please.)
Thanks for all those results people mailed/posted. I will compile
a table soon.
- Reinoud
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-27 0:37 ` R. Lamberts
@ 1993-05-27 11:19 ` Burkhard Neidecker-Lutz
1993-05-27 14:33 ` R. Lamberts
1993-05-27 16:03 ` DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?) Fred Velijanian
0 siblings, 2 replies; 53+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-05-27 11:19 UTC (permalink / raw)
In article <1993May27.003756.3134@donau.et.tudelft.nl> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
>
>Could someone please send me Alpha gcc assembly output for the
>benchmark? Or, even better, could someone with knowledge of
>Alpha try to figure why gcc does so much better than cc?
One big thing we already found was that GCC is ANSI by default and
hence didn't convert from float to double and back. This alone
halves the CPU time for the native cc on this one. Other than
that, rest assured that our compiler folks are looking at this.
At the current stage it is *very* rare for GCC to beat our internal
compilers (especially GEM C), hence it's always interesting to look
at the odd one out.
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-27 11:19 ` Burkhard Neidecker-Lutz
@ 1993-05-27 14:33 ` R. Lamberts
1993-05-27 16:03 ` DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?) Fred Velijanian
1 sibling, 0 replies; 53+ messages in thread
From: R. Lamberts @ 1993-05-27 14:33 UTC (permalink / raw)
From article <1u284pINNbjh@usenet.pa.dec.com>, by neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz):
>
> One big thing we already found was that GCC is ANSI by default and
> hence didn't convert from float to double and back. This alone
> halves the CPU time for the native cc on this one.
Well, I used cc -O2 -std, which should put the compiler in ANSI mode;
indeed the compiler did *not* generate intermediate conversions. I
checked that!
> Other than
> that, rest assured that our compiler folks are looking at this.
Okay :-). Still it would be interesting to learn what went wrong
here.
I'm glad to learn that the performance problem is not in hardware.
I was very much disappointed at Alpha performance a few days ago.
Things certainly look better now...
- Reinoud
^ permalink raw reply [flat|nested] 53+ messages in thread
* DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?)
1993-05-27 11:19 ` Burkhard Neidecker-Lutz
1993-05-27 14:33 ` R. Lamberts
@ 1993-05-27 16:03 ` Fred Velijanian
1993-05-28 8:39 ` Stephen Carpenter
1993-05-28 9:46 ` Burkhard Neidecker-Lutz
1 sibling, 2 replies; 53+ messages in thread
From: Fred Velijanian @ 1993-05-27 16:03 UTC (permalink / raw)
In article <1u284pINNbjh@usenet.pa.dec.com> neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz) writes:
>
>At the current stage it is *very* rare for GCC to beat our internal
>compilers (especially GEM C), hence it's always interesting to look
>at the odd one out.
>
> Burkhard Neidecker-Lutz
>
I have several questions about DEC's C compilers:
1. How does one use the GEM C compiler? Someone mentioned "cc -migrate", is
this only available under OSF/1 1.3?
2. Is this going to replace the current "cc" (which I assume doesn't use
GEM for backend)?
3. What is the c89 compiler for? It comes with the C++ distribution.
4. Does Fortran use GEM as it's backend?
Fred Velijanian
UC Irvine
fredv@uci.edu
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?)
1993-05-27 16:03 ` DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?) Fred Velijanian
@ 1993-05-28 8:39 ` Stephen Carpenter
1993-05-28 9:46 ` Burkhard Neidecker-Lutz
1 sibling, 0 replies; 53+ messages in thread
From: Stephen Carpenter @ 1993-05-28 8:39 UTC (permalink / raw)
In article <2C04E637.13711@news.service.uci.edu>, fredv@abba.acs.uci.edu (Fred Velijanian) writes:
|>
|>I have several questions about DEC's C compilers:
|>
|>1. How does one use the GEM C compiler? Someone mentioned "cc -migrate", is
|> this only available under OSF/1 1.3?
|>
Yes, GEM C comes with DEC OSF/1 V1.3
|>2. Is this going to replace the current "cc" (which I assume doesn't use
|> GEM for backend)?
|>
Dunno (i'm only a lowly support specialist!).
|>3. What is the c89 compiler for? It comes with the C++ distribution.
|>
It's the DEC C compiler and it's there for compatibility with the ULTRIX
DEC C compiler (also called c89).
|>4. Does Fortran use GEM as it's backend?
|>
Yes.
--
_____________________________________________________________________
// \\
// Stephen Carpenter "One inode short of a file system" \\
// \\
(( UNIX Support Specialist sac@uvo.dec.com ))
\\ Digital Equipment Corporation //
\\ Basingstoke, England //
\\_____________________________________________________________________//
+++++ My employers views do not taint my opinions +++++
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?)
1993-05-27 16:03 ` DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?) Fred Velijanian
1993-05-28 8:39 ` Stephen Carpenter
@ 1993-05-28 9:46 ` Burkhard Neidecker-Lutz
1993-05-29 22:30 ` Michael Meissner
1 sibling, 1 reply; 53+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-05-28 9:46 UTC (permalink / raw)
In article <2C04E637.13711@news.service.uci.edu> fredv@abba.acs.uci.edu (Fred Velijanian) writes:
>1. How does one use the GEM C compiler? Someone mentioned "cc -migrate", is
> this only available under OSF/1 1.3?
Yes. And it's in an optional subset.
>2. Is this going to replace the current "cc" (which I assume doesn't use
> GEM for backend)?
The current cc doesn't use a GEM backend, correct. One fine day in the
distant future we will go to a GEM based C compiler, but no firm dates
have been set (I personally wouldn't expect it anytime soon).
>3. What is the c89 compiler for? It comes with the C++ distribution.
Used to be necessary on MIPS/Ultrix because the cc there wasn't ANSI.
cc on Alpha/OSF isn't ANSI by default, but can be made so. Primary
reason for existence of c89 on Alpha is closer linkage to the C++
part.
>4. Does Fortran use GEM as it's backend?
Yes.
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: DEC C Compilers (Was: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?)
1993-05-28 9:46 ` Burkhard Neidecker-Lutz
@ 1993-05-29 22:30 ` Michael Meissner
0 siblings, 0 replies; 53+ messages in thread
From: Michael Meissner @ 1993-05-29 22:30 UTC (permalink / raw)
In article <1u4n1pINN5v1@usenet.pa.dec.com> neideck@nestvx.enet.dec.com
(Burkhard Neidecker-Lutz) writes:
| >3. What is the c89 compiler for? It comes with the C++ distribution.
|
| Used to be necessary on MIPS/Ultrix because the cc there wasn't ANSI.
| cc on Alpha/OSF isn't ANSI by default, but can be made so. Primary
| reason for existence of c89 on Alpha is closer linkage to the C++
| part.
Also if you want to adhere to Posix 1003.2 (commands and libraries), you had
better have a c89 command (even if it is just a link to cc).
--
Michael Meissner email: meissner@osf.org phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
Old hackers never die, they just get buggier.
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-26 21:23 ` Doug Siebert
1993-05-27 0:37 ` R. Lamberts
@ 1993-05-29 12:42 ` Hugo Eide Gunnarsen
1 sibling, 0 replies; 53+ messages in thread
From: Hugo Eide Gunnarsen @ 1993-05-29 12:42 UTC (permalink / raw)
Different results on hp9k755 :
slagg% cc -o and and.c ; time ./and
21.90u 0.05s 1:01.50 35.6%
slagg% cc -O -o and and.c ; time ./and
5.65u 0.03s 0:14.21 39.9%
slagg% cc +r -O -o and and.c ; time ./and
2.61u 0.05s 0:04.14 64.2%
slagg% cc +ESlit +r -O -o and and.c ; time ./and
2.60u 0.06s 0:04.34 61.2%
slagg% cc -J +ESlit +r -O -o and and.c ; time ./and
2.62u 0.05s 0:04.33 61.6%
slagg% cc -Wl,-a,archive -J +ESlit +r -O -o and and.c ; time ./and
2.55u 0.04s 0:04.17 62.1%
slagg% cc +e -Wl,-a,archive -J +ESlit +r -O -o and and.c ; time ./and
2.54u 0.04s 0:04.21 61.2%
slagg% cc +ESsfc +e -Wl,-a,archive -J +ESlit +r -O -o and and.c ; time ./and
2.54u 0.04s 0:04.40 58.6%
slagg% cc +e +ESlit +f -O -Wl,-a,archive -o and and.c ; time ./and
2.53u 0.05s 0:04.64 55.6%
And now an example of the possibility to "go wild" :
slagg% cc +ESlit +OS +O3 +r -O -N +e -t,pc0al +DS1.1 +DA1.1 +ESsfc +OE +Om1 +Os
+f -J +OS +O3 +r -s -Wl,-a,archive -o and and.c ; time ./and
3.18u 0.05s 0:06.11 52.8%
-O = +O3
-W;-a,archive is only interesant when using a LOT of calls to external functions.
In this cast it gave a slight speedup.
gcc-2.4.0 was not so good (4.02 at the best).
Fastes time 2.53 (nice ? :-)
Hugo E. Gunnarsen
hugogu@slagg.met.sintef.no
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 10:29 ` Burkhard Neidecker-Lutz
1993-05-26 7:03 ` Eero Pajarre
@ 1993-05-26 8:40 ` Burkhard Neidecker-Lutz
1993-05-27 12:10 ` John F Carr
1 sibling, 1 reply; 53+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-05-26 8:40 UTC (permalink / raw)
In article <1tssdiINNak1@usenet.pa.dec.com> neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz) writes:
>Yes, but not as good as one would like:
>
>DEC OSF/1 T1.3-3, cc -migrate (aka GEM C) -O4:
>
> DEC 3000-500 8.6 seconds
>
>> d_z=(float)(k&0xfec); 16 %
>> mpix[((int)d2_y<<10)-(int)d2_x]=k-1; 46 %
>
>What is hurting the Alpha is the conversion between integer and floating
>point values. Because there are no instructions to move values between
>floating point and integer registers, each conversion (apart from the
>convert instructions) translates to a load and a store as well. Allthough
>the merging write buffer gets a lot of that traffic caught it still ties
>up the machine (from a raw cycle perspective "pixie" would predict this
>beast to go in 2.2 seconds, but it actually is *memory-bound* on the Alpha).
>
Switch to egg-on-face mode...
Since then I tried gcc on this one and it seems that for this particular
benchmark GCC is indeed a lot faster (somehow all the normal Alpha compilers
miss something here). Anyway, with the most recent version of the libraries
and GCC 2.4:
DEC 3000/500: 4.6 seconds (i.e. still better than the
other GCC reporters)
This machine was running DEC OSF/1 T1.3-3 (so for example the assembler
is different from what the other reporters have). So I consider this
case closed.
> So the Alpha people can relax now... Or can they?
I did. Morale: For benchmarks, I will now try *all* compilers in round
robin fashion. I found wildly varying times on a couple of benchmarks,
depending on what I used:
native cc (cc): Wins for most integer codes
GEM C (cc -migrate): Wins for most floating point codes
GCC: Rarely wins anything, but you'll never
know
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
1993-05-25 7:46 ` Dave Olson
1993-05-25 10:29 ` Burkhard Neidecker-Lutz
@ 1993-05-25 13:49 ` Simon Leinen
1993-05-25 17:37 ` Paul Tobin
` (3 subsequent siblings)
6 siblings, 0 replies; 53+ messages in thread
From: Simon Leinen @ 1993-05-25 13:49 UTC (permalink / raw)
Here are the times for the untuned code on an Indigo R4000
(50/100MHz). Compiled with IRIX cc (IDO 4.1) and GCC 2.4.0. Note
that when you give up R3000 compatibility, you get faster than your
Alpha numbers:
Indigo R4000 | 9.2 | cc -O3 -mips2 -ansi
Indigo R4000 | 8.2 | gcc -O2 -mcpu=r4000 -mips2 -funroll-loops
Note: gcc -O5 consistently gave the same speed as gcc -O2.
--
Simon.
liasg3[csrc]% cc -O2 -ansi andromeda1.c -o andromeda1
liasg3[csrc]% time ./andromeda1
real 12.7
user 12.4
sys 0.0
liasg3[csrc]% cc -mips2 -O3 -ansi andromeda1.c -o andromeda1 && time ./andromed
a1
real 9.6
user 9.2
sys 0.0
liasg3[csrc]% gcc -O2 andromeda1.c -o andromeda1
liasg3[csrc]% time ./andromeda1
real 13.9
user 13.7
sys 0.0
liasg3[csrc]% gcc -funroll-loops -O2 andromeda1.c -o andromeda1
liasg3[csrc]% time ./andromeda1
real 12.8
user 12.7
sys 0.0
liasg3[csrc]% gcc -mcpu=r4000 -mips2 -funroll-loops -O2 andromeda1.c -o androme
da1 && time ./andromeda1
real 8.2
user 8.2
sys 0.0
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
` (2 preceding siblings ...)
1993-05-25 13:49 ` Simon Leinen
@ 1993-05-25 17:37 ` Paul Tobin
1993-05-31 23:25 ` Hugo Eide Gunnarsen
1993-05-25 18:35 ` Archer (Bad Cop) Surly
` (2 subsequent siblings)
6 siblings, 1 reply; 53+ messages in thread
From: Paul Tobin @ 1993-05-25 17:37 UTC (permalink / raw)
: Maybe some kind soul could add R4000 results (or results for
: the newer HP systems).
* HP 9000/735 running HP-UX 9.01
* cc +O2 +r bench.c -o bench
"time bench" yields:
real 0m2.66s
user 0m2.61s
sys 0m0.05s
Paul Tobin
pgt@fc.hp.com
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
` (3 preceding siblings ...)
1993-05-25 17:37 ` Paul Tobin
@ 1993-05-25 18:35 ` Archer (Bad Cop) Surly
1993-05-25 21:55 ` Daniel S. Riley
1993-05-26 16:02 ` Casper H.S. Dik
6 siblings, 0 replies; 53+ messages in thread
From: Archer (Bad Cop) Surly @ 1993-05-25 18:35 UTC (permalink / raw)
In <1993May25.030345.23916@donau.et.tudelft.nl> reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
*Results so far:
*
*system | time (sec.) | cc options
*-------------------------------------------
*Sun IPC | 65.1 | -O2 -fsingle
*Indigo R3000 | 23.7 | -O2 -ansi
*Indigo R3000 | 16.5 | *
*DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
*HP 730 | 5.0 | +O2 +r
On an R4K Indigo running a flavor of IRIX 5.X, I get
real 8.90
user 8.63
sys 0.07
using cc -O2 -mips2
-- archer
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
` (4 preceding siblings ...)
1993-05-25 18:35 ` Archer (Bad Cop) Surly
@ 1993-05-25 21:55 ` Daniel S. Riley
1993-05-25 22:34 ` Bill Broadley
1993-05-26 16:02 ` Casper H.S. Dik
6 siblings, 1 reply; 53+ messages in thread
From: Daniel S. Riley @ 1993-05-25 21:55 UTC (permalink / raw)
In article <1993May25.030345.23916@donau.et.tudelft.nl>,
reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
> system | time (sec.) | cc options
> -------------------------------------------
> Sun IPC | 65.1 | -O2 -fsingle
> Indigo R3000 | 23.7 | -O2 -ansi
> Indigo R3000 | 16.5 | *
> DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
> HP 730 | 5.0 | +O2 +r
DEC 3000/500, gcc -O4
real 0m5.21s
user 0m5.15s
sys 0m0.03s
I had to change the pix[] array to static, as gcc 2.4.0 did not like the
huge frame offset. Changing the declaration did not change the times
for cc, so I doubt it changed the time for gcc much--but it does indicate
that gcc still needs some work on the alpha (but so does cc).
Just to make sure gcc hadn't deleted all the code due to some bug, I
modified the test to write out pix[] to a file and compared the results
from cc and gcc--the files had 3 bytes different:
125567 12 13
129659 2 1
278033 0 2
a small enough difference that it may just be due to differences in the
order calculations are done.
--
-Dan Riley Internet: dsr@lns598.tn.cornell.edu
-Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr)
"Distance means nothing/To me." -Kate Bush
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 21:55 ` Daniel S. Riley
@ 1993-05-25 22:34 ` Bill Broadley
1993-05-26 9:01 ` Hugo Eide Gunnarsen
0 siblings, 1 reply; 53+ messages in thread
From: Bill Broadley @ 1993-05-25 22:34 UTC (permalink / raw)
system | time (sec.) | cc options
-------------------------------------------
Sun IPC | 65.1 | -O2 -fsingle
Indigo R3000 | 23.7 | -O2 -ansi
Indigo R3000 | 16.5 | *
DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
HP 730 | 5.0 | +O2 +r
DEC 3000/500, gcc -O4
real 0m5.21s
user 0m5.15s
sys 0m0.03s
Gcc -V
gcc version 2.3.3
HP-735
gcc -O2 bench.c
real 4.4
user 4.0
sys 0.0
The system was running another cpu job at the time (niced)
--
Bill 1st> Broadley@neurocog.lrdc.pitt.edu
Broadley@schneider3.lrdc.pitt.edu <2nd 3rd> Broadley+@pitt.edu
Linux is great. Bike to live, live to bike. PGP-ok
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
` (5 preceding siblings ...)
1993-05-25 21:55 ` Daniel S. Riley
@ 1993-05-26 16:02 ` Casper H.S. Dik
1993-05-26 18:18 ` Steeve McCauley
6 siblings, 1 reply; 53+ messages in thread
From: Casper H.S. Dik @ 1993-05-26 16:02 UTC (permalink / raw)
reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
>-------------------------------------------
>Sun IPC | 65.1 | -O2 -fsingle
>Indigo R3000 | 23.7 | -O2 -ansi
>Indigo R3000 | 16.5 | *
>DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
>HP 730 | 5.0 | +O2 +r
Sun 10/41 (sunos 5.1) | 6.2 | -fast -xO4 -dn -fsingle
Not that bad.
Casper
^ permalink raw reply [flat|nested] 53+ messages in thread* Re: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-26 16:02 ` Casper H.S. Dik
@ 1993-05-26 18:18 ` Steeve McCauley
0 siblings, 0 replies; 53+ messages in thread
From: Steeve McCauley @ 1993-05-26 18:18 UTC (permalink / raw)
Casper H.S. Dik (casper@fwi.uva.nl) wrote:
: reinoud@dutecai.et.tudelft.nl (R. Lamberts) writes:
: >-------------------------------------------
: >Sun IPC | 65.1 | -O2 -fsingle
: >Indigo R3000 | 23.7 | -O2 -ansi
: >Indigo R3000 | 16.5 | *
: >DEC 3000-500 | 11.0 | -O2 -std (Clock frequency?)
: >HP 730 | 5.0 | +O2 +r
: Sun 10/41 (sunos 5.1) | 6.2 | -fast -xO4 -dn -fsingle
Here's an interesting result.
HP 710 with cc -O +r bench.c -o bench
time bench
real 0m6.90s
user 0m6.56s
sys 0m0.14s
HP 720 with cc -O +r bench.c -o bench
time bench
real 0m6.80s
user 0m6.57s <- same as 710?
sys 0m0.07s
go figure?
HP 735 with same
time bench
real 0m4.29s
user 0m2.62s!!!
sys 0m0.05s
Yikes!
--
Cheers et salut,
____________________________________________________________________________
I need a homebrew! NOW | steeve@pooh.geophys.mcgill.ca
Log/Commander Hoek/Cadet Stimpy/Dixie/Toast/D'Ooh/Fiddle/Bilge/Yikes
^ permalink raw reply [flat|nested] 53+ messages in thread
* Re: 100MHz Indigo just as fast as HP/ALPHA?
1993-05-19 20:38 ` R. Lamberts
` (4 preceding siblings ...)
1993-05-25 3:03 ` BENCHMARK/RESULTS " R. Lamberts
@ 1993-05-25 15:29 ` Martin Preston
5 siblings, 0 replies; 53+ messages in thread
From: Martin Preston @ 1993-05-25 15:29 UTC (permalink / raw)
In <1993May19.203842.3272@donau.et.tudelft.nl> reinoud@einstein.et.tudelft.nl (R. Lamberts) writes:
>Indigo R3000 (!): 12.5 seconds
>Alpha: 10.9 seconds
>HP735: 5.9 seconds
Out of interest what type of Alpha was it? Were you measuring elapsed CPU
time or just plain time to finish? What OS was it running? Was it a tuned
machine?
I'm mildly curious as it seems to contradict what other people are claiming
and it would be interesting to see why.
thanks in advance
Martin
--
---------------------------------------------------------------------------
|Martin Preston, (m.preston@manchester.ac.uk) | Computer Graphics |
|Computer Graphics Unit, Manchester Computing Centre, | is just |
|University of Manchester, | a load of balls. |
|Manchester, U.K., M13 9PL Phone : 061 275 6095 | |
---------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 53+ messages in thread