# Investigate slowness

**URL:** <https://discourse.julialang.org/t/investigate-slowness/68405>\
**Category:** New to Julia\
**Tags:** performance, memory-allocation, arrays\
**Created:** [September 19, 2021, 10:38am UTC](https://discourse.julialang.org/t/investigate-slowness/68405 "2021-09-19T10:38:57Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [September 19, 2021, 4:50pm UTC](https://discourse.julialang.org/t/investigate-slowness/68405/13 "2021-09-19T16:50:52Z")

</div>

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](https://discourse.julialang.org/t/solved-agents-jl-spending-3-4-of-its-time-doing-something-before-it-even-starts-to-compute/44109/9)

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.

---

_[View the full topic](https://discourse.julialang.org/t/investigate-slowness/68405)._
