When does the garbage collector runs?

I tired to look a bit into it (prevent a few variables from becoming global by KristofferC · Pull Request #117 · JuliaCI/BenchmarkTools.jl · GitHub) but I think that for each @btime call a new function is generated with x interpolated into the function body, thus keeping it alive.

1 Like