Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* RH5.1 axp floating point performance
@ 1998-08-13 17:12 Cooperberg, David
  1998-08-14  1:26 ` Michal Jaegermann
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Cooperberg, David @ 1998-08-13 17:12 UTC (permalink / raw)
  To: 'axp-list@redhat.com'


I have noticed a considerable decline in floating-point performance in
upgrading from Redhat4.2 (for alpha) to Redhat 5.1 (same alpha).  As an
example, the spec.c code below
executes in 27. seconds (time output) when run on my 433MHz RH5.1 alpha
when compiled as "gcc spec.c -o spec -lm" while it runs in 4.3 seconds
on
the same machine if I link to the old (from RH4.2) math library,
-lm-1.99,
(though the compile gives me warnings).  I have tried a variety of
compiler
flags when linking with the new math library but have not improved
performance.  I gather RH5.1 has a new glibc package and was wondering
if I
have to live with this huge performance hit.  Is there a patch or flag I
am
missing?  Has anyone else had problems?

#include <math.h>

int main()
{
  int i, j;
  double ftemp;

  ftemp=1.;
  for(i=1;i<10000;i++) {
    for(j=1;j<1000;j++) {
      ftemp+= 2.*sqrt(ftemp);
      ftemp*=0.5;
    }
  }
  printf("%g\n",ftemp);
}



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1998-08-17  9:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-13 17:12 RH5.1 axp floating point performance Cooperberg, David
1998-08-14  1:26 ` Michal Jaegermann
1998-08-14  2:06 ` Wes Bauske
1998-08-14 12:45   ` Harvey J. Stein
1998-08-14 19:52     ` Wes Bauske
1998-08-14  3:01 ` Alvin Starr
1998-08-14 12:36   ` Ken Hansen
     [not found]     ` <35D43B4E.59E2B600@iis.fhg.de>
     [not found]       ` <35D48F2C.F3C@njcc.com>
1998-08-16 16:38         ` Stefan Schroepfer
1998-08-16 18:44           ` Richard Henderson
1998-08-17  9:43             ` Stefan Schroepfer
1998-08-14  8:46 ` Stefan Schroepfer

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