4 ms·
I cant find any benchmarks comparing AOT to non AOT and ideally C, C++, or Rust. Anyone aware of any?
by xanth 5y ago
I cant find any benchmarks comparing AOT to non AOT and ideally C, C++, or Rust. Anyone aware of any?
- akmittal 5y agoAll benchmark you mentioned(and lot more) https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/csharpcore-csharpaot.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- Traubenfuchs 5y agoIsn't non-AOT C# (and java) "cheating" here, by warming up? And isn't not needing warm up one of the AOT selling points?
- kevingadd 5y agoI think in practice PGO for native C/C++ binaries is not that different from a JIT warming up C#/Java code, especially since llvm+clang is so good at optimizing code.
- hibbelig 5y agoOften, you might want to run servers. If they are JIT compiled, then during warm-up they will be slow(er), and later they will be fast(er). But usually you don't restart servers that often, so they will spend most of their time in "fast mode". It makes sense to me to measure what will be used in practice. Of course, for command line tools such as grep, it is more realistic to measure the warmup phase as well, as that will reflect real usage.
- igouy 5y agoWhat makes you think those "non-AOT C# (and java)" have a "warming up" time that isn't included in the run time measurement?
- bob1029 5y agoEverything I've ever seen and experienced had informed me that AOT might not be worth it when you look at the whole engineering pie. Especially considering the additional sharp edges it adds around reflection and dynamic types.