Hi,all
I tested the performance speed between julia‘s matrix multiply and that of numpy in python.
To my surprise , it take 27 second to do a multiply between 5000x10000 and 10000x5000.And 45 second to complete this in julia.so i am confused about the high performance of julia。
===============================================================
python code
x=numpy.random.random((5000,10000))
y=numpy.random.random((10000,5000))
cProfile.run("numpy.dot(x,y)")
python result
4 function calls in 27.497 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.028 0.028 27.496 27.496 <string>:1(<module>)
1 27.468 27.468 27.468 27.468 {built-in method dot}
1 0.000 0.000 27.497 27.497 {built-in method exec}
1 0.000 0.000 0.000 0.000 {method 'disable' of
=========================================
julia code
function myfun()
x = rand(5000,10000)
y = rand(10000,5000)
x*y
end
@profile myfunc()
Profile.print()
==========================================
julia take about 45second to complete.
am i something wrong in my code or julia is just a child to grow up