Skip to content

Instantly share code, notes, and snippets.

@bwhite
Created September 22, 2012 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhite/3767902 to your computer and use it in GitHub Desktop.
Save bwhite/3767902 to your computer and use it in GitHub Desktop.
Machine benchmark
http://wiki.apache.org/hadoop/Hbase/PerformanceEvaluation
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