Mon, 18 Sep 2017 14:54:20 +0800
[Interpreter] Performance of the new operation is 10% up.
Running time of the test program: 206ms --> 187ms (on 3A3000-1way @ 1.4 GHz)
public class Test {
private static final int MAX = 400000;
private int a;
private char b;
private char c;
private long d;
private short e;
private byte f;
Test() {
a = 1;
b = 1;
c = 1;
d = 1;
e = 1;
f = 1;
}
public long sum() {
return a + b + c + d + e + f;
}
public static void main(String[] args) throws Exception {
long t = System.currentTimeMillis();
Test[] arr = new Test[MAX];
for (int i = 0; i < MAX; i++) {
arr[i] = new Test();
}
System.out.println((System.currentTimeMillis() - t) + "ms");
//System.gc();
System.out.println(arr[0].sum());
}
}
aoqi@0 | 1 | ^build/ |
aoqi@0 | 2 | ^dist/ |
aoqi@0 | 3 | /nbproject/private/ |
aoqi@0 | 4 | ^src/share/tools/hsdis/build/ |
aoqi@0 | 5 | ^src/share/tools/IdealGraphVisualizer/[a-zA-Z0-9]*/build/ |
aoqi@0 | 6 | ^src/share/tools/IdealGraphVisualizer/build/ |
aoqi@0 | 7 | ^src/share/tools/IdealGraphVisualizer/dist/ |
aoqi@0 | 8 | ^.hgtip |
aoqi@0 | 9 | .DS_Store |