Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Markus Dickebohm <markus@dali.slip.uni-koeln.de>
Subject: libc/libm-Tuning
Date: Sat, 11 May 1996 13:39:41 +0200 (MET DST)	[thread overview]
Message-ID: <199605111139.NAA32273@dali.slip.uni-koeln.de> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

Hello!

After the latest discussions in this group I made some benchmarks.
Maybe they are interesting for the libc/libm-gurus.

Since I am a chemist, number crunching is of special interest for me.
So here a my results for this little benchmark:

#include <stdio.h>
#include <math.h>
#include <time.h>
main()
{
double  x,y[10000];
int     i,j;
time_t  t;

time(&t);
for (j=0;j<10000;j++)
  for (i=0;i<10000;i++)
        {
        x=11.0+(33.5*i)*(33.5*i);
        y[i]=(sin(3.1*i)+cos(5.1*i))*sqrt(x+exp(3.14*log(x+i)));
        }
printf("time=%d\n",time(0)-t);
}

Linux 1.3.94 on DEC AlphaStation 200 4/166 : 41 sec
DEC Unix 3.2 on       "                    :  7 sec

The used compilers:
	gcc2.7.1 on Linux
	gcc2.7.2 on Digital Unix (AFAIK /bin/as is used)
Almost a factor of 6 :-(( . This is much more than reported here before.

Markus

-- 
----------------------------------------------------------------------------
Markus Dickebohm             |    E-Mail: M.Dickebohm@uni-koeln.de
Physikalische Chemie II      |  
Universität zu Köln          |    Tel.:   0221-470-4816
----------------------------------------------------------------------------

             reply	other threads:[~1996-05-11 11:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-11 11:39 Markus Dickebohm [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-05-11 19:37 libc/libm-Tuning David Mosberger-Tang
1996-05-12  0:47 libc/libm-Tuning Robert Allen Barker
1996-05-12 10:55 ` libc/libm-Tuning Markus Dickebohm
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