Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: reinoud@dutecai.et.tudelft.nl (R. Lamberts)
Subject: BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA?
Date: Tue, 25 May 1993 03:03:45 GMT	[thread overview]
Message-ID: <1993May25.030345.23916@donau.et.tudelft.nl> (raw)
In-Reply-To: 1993May19.203842.3272@donau.et.tudelft.nl



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;
}


  parent reply	other threads:[~1993-05-25  3:03 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-19 15:01 100MHz Indigo just as fast as HP/ALPHA? Glen Reesor
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-21  1:28       ` Jeffrey Mogul
1993-05-21 13:34         ` Loren Buchanan
1993-05-21 16:08           ` Marc Evans
1993-05-21  9:43       ` Burkhard Neidecker-Lutz
1993-05-21 19:16         ` R. Lamberts
1993-05-22  8:02           ` Bill Broadley
1993-05-23 16:22             ` Justin Sullivan
1993-05-25 23:49         ` please help Deborah Berman
1993-05-20 13:16   ` 100MHz Indigo just as fast as HP/ALPHA? Hal Berenson
1993-05-20 15:39     ` Stan Jensen
1993-05-21 18:22   ` Walter Underwood
1993-05-25 19:47     ` Jos van Eijndhoven
1993-05-25  3:03   ` R. Lamberts [this message]
1993-05-25  7:46     ` BENCHMARK/RESULTS " Dave Olson
1993-05-26  5:44       ` Hans Mayer
1993-05-25 10:29     ` Burkhard Neidecker-Lutz
1993-05-26  7:03       ` Eero Pajarre
1993-05-26 21:23         ` Doug Siebert
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
1993-05-28  8:39                 ` Stephen Carpenter
1993-05-28  9:46                 ` Burkhard Neidecker-Lutz
1993-05-29 22:30                   ` Michael Meissner
1993-05-29 12:42           ` BENCHMARK/RESULTS Re: 100MHz Indigo just as fast as HP/ALPHA? Hugo Eide Gunnarsen
1993-05-26  8:40       ` Burkhard Neidecker-Lutz
1993-05-27 12:10         ` John F Carr
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
1993-05-25 21:55     ` Daniel S. Riley
1993-05-25 22:34       ` Bill Broadley
1993-05-26  9:01         ` Hugo Eide Gunnarsen
1993-05-26 16:02     ` Casper H.S. Dik
1993-05-26 18:18       ` Steeve McCauley
1993-05-25 15:29   ` Martin Preston
1993-05-20 14:28 ` M Darrin Chaney
1993-05-20 14:41   ` Marcus J Ranum
1993-05-24 14:51     ` Sybertz Marc
1993-05-24 15:38       ` Marcus J Ranum
1993-05-25 13:43         ` Sybertz Marc
1993-05-26  5:45           ` Thor Lancelot Simon
1993-05-25 19:02         ` Jolly C. Pancakes
1993-05-25 19:10       ` Paul Repacholi
1993-05-20 15:12   ` Tony Burzio
1993-05-20 20:26   ` Scott Ferguson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox