Your message made me curious, so I did some benchmarking, and it turns out adding addprocs()
to the top of the script gives a 3% speedup versus invoking the script with -p4
(no idea why this is or why it should be the case). So I guess there is room for improvement on this benchmark after all.
EDIT: created a github issue in case there鈥檚 something that can be done about this: addprocs() is faster than starting julia with the -p flag 路 Issue #35425 路 JuliaLang/julia 路 GitHub