using Distributed
@time @distributed for i in 1:10000
i * 2
end
0.008885 seconds (8.50 k allocations: 492.944 KiB, 99.20% compilation time)
Task (done) @0x0000000109e9a6e0
But this causes my terminal to become unresponsive:
using BenchmarkTools
using Distributed
@btime @distributed for i in 1:10000
i * 2
end
What is the right way to use @btime with @distributed?
I was wrong about @btime @distributed ... not working, it does run if I give it enough time. But it takes MUCH longer for the benchmark to run than @btime Threads.@threads ..., but the reported times are comparable, which is interesting. Thanks for the help!