|
|
|
|
|
by wolf550e
2602 days ago
|
|
5000 refers to number of times a method needs to be called before the JIT decides the method is "warm" and needs to be compiled by the expensive to run C2 compiler which produces good quality machine code. If you're benchmarking java code and the method was not called enough times before you measure, you're measuring code compiled by C1 (or even interpreted). The performance gap between Java and C is on the order of x2 to x5. |
|
[1] https://docs.oracle.com/javase/8/docs/technotes/tools/window...