by chriskrycho · 5y ago · 0 comments
The other thing is that true warmup (not just startup) time to reaching optimization is a lot weirder and less predictable than people realize. See e.g. [1] and [2] for a fascinating analysis (caveat: about a decade old) of the actual warmup characteristics of a number of different VMs (Graal, HHVM, HotSpot, LuaJIT, PyPy, TruffleRuby, and V8). Spoilers: there are bizarre deopt cliffs, scenarios where it appears to optimize and then de-optimizes if you run it long enough, and programs which just never optimize… and this is on benchmark tests!
[1]: https://tratt.net/laurie/blog/entries/why_arent_more_users_m...
[2]: https://tratt.net/laurie/blog/entries/why_arent_more_users_m...