Shouldn't 1.8.0 be faster than Julia 1.7?

Can I recommend that anyone who is trying this change it to

using BenchmarkTools
f() = (1:10^6).^2
@btime f();

As Matt says, there’s really no point allocating a 7GB RAM array as part of a benchmark. Your results will entirely depend on details of your hardware and what you have loaded concurrently. This really is meaningless and no one should draw conclusions from the other variants here.

14 Likes