From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30337 invoked from network); 14 Aug 1998 00:59:57 -0000 Received: from softdnserror (HELO gatekeeper.lamrc.com) (167.191.33.10) by mail2.redhat.com with SMTP; 14 Aug 1998 00:59:57 -0000 Received: from fre_exch_mta2.dhcp.lamrc.com by lamrc.lamrc.com via ESMTP (951211.SGI.8.6.12.PATCH1042/951211.SGI) for id SAA02697; Thu, 13 Aug 1998 18:00:24 -0700 Message-Id: <199808140100.SAA02697@lamrc.lamrc.com> Received: by FRE_EXCH_MTA2.dhcp.lamrc.com with Internet Mail Service (5.5.1960.3) id ; Thu, 13 Aug 1998 17:59:27 -0700 From: "Cooperberg, David" To: "'axp-list@redhat.com'" Subject: RH5.1 axp floating point performance Date: Thu, 13 Aug 1998 10:12:05 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain 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 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); }