HotSpot performance parity with IBM and JRockit
HotSpot fares very well in a benchmark like SciMark, but in the test below (fibonacci - commonly used in benchmarks) I notice that Hotspot server (and client obviously) in JDK5.0 is considerably slower than either JRockit or IBM. I am not sure if it is because these VMs are better with recursion or if they have lower method call overheads - or somethings else. Does anyone on the Hotspot team have any comments on this? BTW Hotspot server is still faster than C# and J# on this test, but the client VM slightly slower.
static int fib(int n)
if (n==1 || n==2) return 1;
public static void main(String args)
for (int i=0; i<10; i++)
long start = System.currentTimeMillis();