Profiling code reveals that most time is used calling 3 functions in task.jl

Are you running multiple julia threads? I found similar results when profiling anything if julia was launched with more than one thread. Profiling seems to work properly for me only when julia is launched with a single thread. If you’re using Juno, note that it launches julia with multiple threads by default. See the following, for example:

https://github.com/JunoLab/Juno.jl/issues/205

1 Like