Vector addition in Julia slower than numpy in Linux

I also wouldn’t blame Ubuntu:

In [6]: %timeit a + b
554 µs ± 40.4 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

julia> @btime $a .+ $b;
  475.107 μs (2 allocations: 3.81 MiB)

julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

I think I might have made a mistake then. I’m getting very similar values now too! Sorry for wasting everybody’s time :pleading_face:

2 Likes