Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created April 16, 2012 11:25
Show Gist options
  • Save bayerj/2397894 to your computer and use it in GitHub Desktop.
Save bayerj/2397894 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
import numpy
import time
try:
import numpy.core._dotblas
print 'Using ATLAS:'
except ImportError:
print 'No ATLAS:'
print numpy.__version__
x = numpy.random.random((1000,1000))
y = numpy.random.random((1000,1000))
t = time.time()
for i in range(N):
numpy.dot(x, y)
print (time.time()-t) / 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment