Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Cooperberg, David" <david.cooperberg@lamrc.com>
To: "'axp-list@redhat.com'" <axp-list@redhat.com>
Subject: RH5.1 axp floating point performance
Date: Thu, 13 Aug 1998 10:12:05 -0700	[thread overview]
Message-ID: <199808140100.SAA02697@lamrc.lamrc.com> (raw)


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



             reply	other threads:[~1998-08-14  0:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-13 17:12 Cooperberg, David [this message]
1998-08-14  1:26 ` RH5.1 axp floating point performance 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
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