Hello ,
Recently, I found that julia svd is slower than the one in matlab. It has been discussed once here in https://github.com/JuliaLang/julia/issues/3521, but after reading this, I am still not quite sure what is exactly happening here. Could someone please help me? Thanks in advance.
The code is
A = rand(1000,1000);
@benchmark svd(A)
output is
BenchmarkTools.Trial:
memory estimate: 45.90 MiB
allocs estimate: 13
--------------
minimum time: 449.142 ms (0.90% GC)
median time: 580.609 ms (3.14% GC)
mean time: 597.990 ms (4.71% GC)
maximum time: 784.079 ms (2.63% GC)
--------------
samples: 9
evals/sample: 1
and for Matlab is
tic;svd(A);toc
output is
Elapsed time is 0.286179 seconds.
I am using Windows10 system, julia is the binary downloaded from the website. It seems the lapack version for julia is libopenblas64_, and mkl for matlab. Could this be the reasons?
Is anyone able to intall julia on Windows10 so that it has equivalent performance as matlab? If so, how did you do that? Thanks very much.
Sincerely
BaiCai