hi all
just a quick question. I am a switcher
-) and a java developer. I just updated to the new 1.4.1 and made a quick test of performance. The results are quite shocking. Consider the following simple class (it's not PHP but the coloring is just fine):
On my old wintel (700mHz, 256m ram) it takes about 3-4 secs.
On my new 1GHz (512m ram) powerbook it takes about 10-11 secs.
Is there anything I overlooked? Is it really possible that the 1.4.1 implementation is about 3 times slower than on a not even comparable wintel machine?
I am looking forward to hearing about your experience with java performance on macs.
thanks
sala
just a quick question. I am a switcher
PHP:
import java.util.*;
class speedtest {
public static void main(String args[]) {
long start = System.currentTimeMillis();
Random r = new Random();
for (int u = 0; u < 10000000; u++) {
double i = r.nextDouble();
double j = r.nextDouble();
double ij = i/j;
}
long stop = System.currentTimeMillis();
System.out.println("LOOP NEEDED "+(stop-start)+ "MS.");
}
}
On my old wintel (700mHz, 256m ram) it takes about 3-4 secs.
On my new 1GHz (512m ram) powerbook it takes about 10-11 secs.
Is there anything I overlooked? Is it really possible that the 1.4.1 implementation is about 3 times slower than on a not even comparable wintel machine?
I am looking forward to hearing about your experience with java performance on macs.
thanks
sala