The parallelism is slower than sequential computing?

Using tic() and toc() will measure compile time. One should use BenchmarkTools.jl.

Note also that these two programs are not equivalent. The parallel form performs a summation (since you’ve inserted a (+)), while the sequential form does not.

1 Like