3 ms·
On my somewhat old Linux machine his main() takes 5.22 seconds. Meanwhile, this Julia code @time map(string, 1:1000000); reports execution time 0.18 seconds
by Mikhail_K 6y ago
On my somewhat old Linux machine his main() takes 5.22 seconds. Meanwhile, this Julia code
@time map(string, 1:1000000);
reports execution time 0.18 seconds. But that includes compilation time, if you use BenchmarkTools that runs the code repeatedly, I get 88.6 milliseconds
- eggsnbacon1 6y agothe outer loop runs 20 times as well