From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,621fba82ae0379b7,start X-Google-Attributes: gid1164f8,public From: rjac@world.std.com (Ron Jacobson) Subject: Benchmark? Date: 2000/03/28 Message-ID: #1/1 X-Deja-AN: 603545968 Organization: The World, Public Access Internet, Brookline, MA Newsgroups: comp.sys.dec [I apologize in advance, if this newsgroup is inappropriate for the following question; if so, what would the correct newsgroup(s) be?] I would be grateful if people run the program below (a silly number cruncher), either on DPW xxxAU or XP1000 500/667 MHz machines (after compiling with "-fast" and "-arch ev6"), and report the running time (you also need to compile with "-lm" because of the sqrt function). The result is 3.112373e+11. I'm just curious, as we get quite a variation in running times... on an XP1000 667MHz I use, it takes 0.96 CPU seconds. On different 433AU's, running times substantially differ, and I cannot understand why. On an ES40 500MHz (1 CPU), running time was 0.99 CPU seconds; why is the 667MHz machine faster than the 500MHz one only by about 3 percent? Cheers, Ron Jacobson. Here is my masterpiece of a program: #include #include main(ac,av) char **av; { int i,j,k; double a,sum=0.0; for(i=0;i<300;i++) for(j=0;j<300;j++) for(k=0;k<300;k++){ a=1000066.44*i+1001.99*j+0.9944*k; sum += sqrt(a); } printf("%e\n",sum); }