1.
public static void main (String args[]) {
long startTime = System.currentTimeMillis();
int x = 1;
int y = 1;
int z = 1;
a.cal1(x, y, z);
a.cal2(x, y, z);
long endTime = System.currentTimeMillis();
System.err.println("time: "+ (endTime - startTime)+" z = "+z);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
Before a method is compiled, 14 stubs are compiled in X86.
2.