Reputation: 1586
I observed a significant difference in performance between my local Python (2.7) and a virtual environment (on the same machine).
I tested the following script:
import numpy as np
import time
A = np.random.rand(500, 3000)
B = np.random.rand(5000, 3000)
tic = time.time()
p = np.dot(A, B.T)
toc = time.time()
print toc - tic
It was ~20 times faster in the local environment.
What could be the reasons? (Maybe there is a package that accelerates vectorized operations installed in the my local Python but not on the virtual environment?)
Thank you in advance for any suggestions.
Upvotes: 0
Views: 779
Reputation: 1586
As suggested by @BiRico, I checked the version of Linear Algebra libraries such as BLAS and LAPACK using the command:
python -c 'import numpy; numpy.show_config()'
and surprised, I do not have any of these installed.
Upvotes: 1