Replies: 2 comments
-
This is a very poor test which does not verify performance difference between numpy and "pure" pyton AT ALL. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You’re converting between data structures and depriving numpy the opportunity to make optimizations. Try this instead: import numpy as np
a = np.arange(1000000)
%timeit b = a*3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WHY NUMPY IS SLOWER THEN PYTHON HERE
PLEASE LET ME KNOW
Beta Was this translation helpful? Give feedback.
All reactions