3 ms·
It's incorrect to say AOT is always faster than JIT (without profile guided optimization). And it's reasonable to call jit-eligible code sometimes compiled.
by iudqnolq 3y ago
It's incorrect to say AOT is always faster than JIT (without profile guided optimization). And it's reasonable to call jit-eligible code sometimes compiled.
- satvikpendem 3y agoThat is true, I (and the parent) should not have made claims either way about their respective speeds without thorough benchmarks.
- zigzag312 3y agoClient apps are most of the time not long running processes where JIT could reach steady state performance and startup time is important. So in practical terms, AOT is faster than JIT majority of time in this use case. Also, look at this benchmark where native image PGO is now outperforming JIT in peak throughput: https://medium.com/graalvm/graalvm-for-jdk-21-is-here-ee01177dd12d https://medium.com/graalvm/graalvm-for-jdk-21-is-here-ee0117...