From: L, Raghunath (Raghu) (lraghunath@lucent.com)
Date: Tue Dec 20 2005 - 08:00:25 EST
Hello Managers,
I want to compare Sunfire V880/890 with T2000 8 core server comaparison is
limited to the CPU, if possible comparison between UIV/IV+ , T1,IIi,IIIplus
If possible on Intel/AMD.
I have small C program below which excutes the sqrt(square root) function
until the number is reduced to 1,I would like to get the feedback on
./st.bin 50000 ( or which ever binary name you provide, Please try to
optimise with fpverion given along with sun C compilers)
I have tried it on E-420 it takes 18 seconds, on V440/880 around 12 seconds
again it's dependent on the server load number what you see is for
modarately loaded servers.
I will summarize.
How to compile
cc -o st.bin stress.c -lm
cat stress.c
C program
****************************************************************************
**************************************************
#include<stdio.h>
#include<math.h>
#include<time.h>
double sqrt(double x);
int main(int argc, char *argv[])
{
double num = 922337203685477580;
time_t t1, t2;
int i, maxCount;
maxCount = (int)atoi(argv[1]);
printf("\n max: %d\n", maxCount);
time(&t1);
for(i=0; i<maxCount; i++)
{
printf("%d :: ", maxCount);
num = 922337203685477580;
for( ; (int)num > 1 ; )
{
num = sqrt(num);
printf("%lf \n", num);
}
}
time(&t2);
printf("\n Time to execute give instruction... %d seconds \n", (t2-t1));
}
****************************************************************************
****************************************************
-- Sincerely, Raghu SDE Team <>Fix the problem, not the blame. <> _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:37:56 EDT