Created
September 22, 2012 21:33
-
-
Save bwhite/3767902 to your computer and use it in GitHub Desktop.
Machine benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://wiki.apache.org/hadoop/Hbase/PerformanceEvaluation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import time | |
import subprocess | |
print(np.show_config()) | |
blas_path = np.core._dotblas.__file__ | |
subprocess.call(['ldd', blas_path]) | |
st = time.time() | |
d = 1024 | |
for n in range(100): | |
a = np.random.random((d, d)) | |
b = np.random.random((d, d)) | |
np.dot(a, b) | |
print('Total Time[%f]' % (time.time() - st)) | |
# 1.5GB Linode Ubuntu 8.04 BLAS: ['f77blas', 'cblas', 'atlas'] - 60.470246 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment