4 ms·
You don't get "native performance" (as in the speed that a native application would run) even with JIT. You still need to implement the semantics of the virtual
by AlotOfReading 3y ago
You don't get "native performance" (as in the speed that a native application would run) even with JIT. You still need to implement the semantics of the virtual machine, and generate the native code, add safety guardrails for memory safety, etc. The Hotspot JVM is a world class implementation that does all of that well and still loses to C/C++ outside specialized benchmarks.
- kaba0 3y agoThe JVM has different semantics than C/C++, so it is not an apt comparison. Asymptotical performance-wise there is nothing inherent with a JIT compiler that would put it behind an AOT one.