Aha I found the thread: [solved] Agents.jl spending 3/4 of its time doing something before it even starts to compute? - #9 by dlakelan
The issue is that you’re probably running 4 threads, and the profiler samples all the threads. so 3 out of 4 of them are doing nothing.