CPU performence comparison between UIV/IV+ , T1,IIi,IIIplus If p ossible on Intel/AMD



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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: a little mistake
    ... Also the use of "inline" for that function is redundant. ... compilers will do it anyways and it isn't portable across all compilers ... int main ... Calling function would be part of the users code. ...
    (comp.lang.c)
  • Re: [RFC] New kernel-message logging API
    ... return buf; ... static char* put_dec(char *buf, unsigned long long num) ... static int skip_atoi ...
    (Linux-Kernel)
  • Reverse Numbers
    ... I want them displayed in reverse order in the status bar. ... public void actionPerformed(ActionEvent actionEvent) ... public int qualityPoints(int num) ...
    (comp.lang.java.help)
  • Re: Hundreds of cases in a switch, optimization?
    ... > In terms of generated machine code, how does hundreds of cases in a switch ... Do compilers or processors do any ... extern int f; ... compiled both with and without optimisation. ...
    (comp.lang.c)
  • Re: K&R-Style Function Declarations: Good or Bad?
    ... > short parameters getting promoted to int. ... all pre-ANSI compilers widened char and short ... declarations -- some compilers converted the widened types back to the ...
    (comp.lang.c)