re: https://twitter.com/SimonDeDeo/status/1344031423704006656
You are not timing the same thing in each language.
See below for what you were timing in Julia.
And, as has been mentioned, use @time
or @btime from BenchmarkTools.jl
(time
does not do what you expect it to do).
When using @time
, run the timing once to precompile the test
before considering the results valid. The first run may take
considerably longer, and that extra time is not computing time.
I have omitted those lines below.