Last active
August 29, 2015 14:07
-
-
Save skuschel/1782c71e9d2d548064be to your computer and use it in GitHub Desktop.
numpy histogram 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
#!/usr/bin/env python2 | |
import numpy as np | |
import timeit | |
datax = np.random.random(50e6) | |
datay = np.random.random(50e6) | |
print 'creating histogram' | |
hist, edx, edy = np.histogram2d(datax, datay, bins=[700,700]) | |
#Arbeitsplatzrechner, python2 numpy version 1.9.0: | |
# 4.0 sek mit 5e6 | |
# 30.0 sek mit 50e6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment