L
little
Hi
Did anybody notice a loss of performance in math libraries on JDK
1.5. Here a simple test program :
long start = System.currentTimeMillis();
int COUNT_SIMUL = 1000000;
double sum = 0.;
for (int idx= 0; idx < COUNT_SIMUL; idx++)
{
sum += Math.exp(Math.log(idx + 1) - 1);
}
long end = System.currentTimeMillis();
I tried it on my PIV 2.8 Ghz /HT and here are the results :
JDK 1.4 Client : 0.64 sec
JDK 1.4 Server : 0.58 sec
JDK 1.5 Client : 0.67 sec
JDK 1.5 Server : 1.01 sec
In many tests, I have the same kind of gap. Is there a reason for
this and a way to avoid it ? This is a serious problem for an
application I develop which use a lot of this functions.
Thanks,
Did anybody notice a loss of performance in math libraries on JDK
1.5. Here a simple test program :
long start = System.currentTimeMillis();
int COUNT_SIMUL = 1000000;
double sum = 0.;
for (int idx= 0; idx < COUNT_SIMUL; idx++)
{
sum += Math.exp(Math.log(idx + 1) - 1);
}
long end = System.currentTimeMillis();
I tried it on my PIV 2.8 Ghz /HT and here are the results :
JDK 1.4 Client : 0.64 sec
JDK 1.4 Server : 0.58 sec
JDK 1.5 Client : 0.67 sec
JDK 1.5 Server : 1.01 sec
In many tests, I have the same kind of gap. Is there a reason for
this and a way to avoid it ? This is a serious problem for an
application I develop which use a lot of this functions.
Thanks,