From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199605111139.NAA32273@dali.slip.uni-koeln.de> Date: Sat, 11 May 1996 13:39:41 +0200 (MET DST) From: Markus Dickebohm Subject: libc/libm-Tuning 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 #include #include 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 ----------------------------------------------------------------------------