TTFX for Julia 1.11 much faster than with Julia 1.10

We see that the initialization of an MTK problem, using Julia 1.11 is much faster than with Julia 1.10. For details, see: System initialization on Julia 1.10 is slow · Issue #233 · ufechner7/KiteModels.jl · GitHub

Julia 1.10:

[ Info: System initialized at:
Time elapsed: 26.04489362 s

Julia 1.11:

[ Info: System initialized at:
Time elapsed: 6.724497246 s

Is this to be expected, or do we have bug in the way we precompile?

If you want to reproduce our results, follow the instructions at GitHub - ufechner7/KiteModels.jl: Kite and tether models for the simulation of kite power systems

and then run:

include("examples/ram_air_kite.jl")
4 Likes

Somewhat expected. There are certain things around type checks that cache better now.

5 Likes