Skip to content

System initialization on Julia 1.10 is slow #233

@ufechner7

Description

@ufechner7

With Julia 1.10 on Laptop on power I get:

ufechner@framework:~/repos/KiteModels.jl$ jl
Found system image!
 
julia> include("examples/ram_air_kite.jl")
[ Info: Loading packages 
Time elapsed: 2.764336255 s
[ Info: Creating wing, aero, vsm_solver, sys_struct and symbolic_awe_model:
Time elapsed: 14.280829633 s
[ Info: Initialized integrator in 2.334532204 seconds
[ Info: System initialized at:
Time elapsed: 26.04489362 s
[ Info: Total time without plotting:
Time elapsed: 51.859391693 s
┌ Info: Performance:
│   times_realtime = 9.136206869684973
└   integrator_times_realtime = 93.14887595481557

With Julia 1.11 this is much faster:

julia> include("examples/ram_air_kite.jl")
[ Info: Loading packages 
Time elapsed: 3.047232144 s
[ Info: Creating wing, aero, vsm_solver, sys_struct and symbolic_awe_model:
Time elapsed: 4.58175254 s
[ Info: Initialized integrator in 0.012111362 seconds
[ Info: System initialized at:
Time elapsed: 6.724497246 s
[ Info: Total time without plotting:
Time elapsed: 22.195765269 s
┌ Info: Performance:
│   times_realtime = 8.327132228990832
└   integrator_times_realtime = 73.98693828672532

In other words: Sytem initialization is 20s faster on Julia 1.11. Any idea?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions