import numpy as np
import time
REPS = 200
s = np.ones(500).reshape(25,20)
t = time.time()
for i in range(REPS):
for j in range(s.shape[1]):
min(s[:,j])
print("builtin min: %.3f seconds" % (time.time() - t))
t = time.time()
for i in range(REPS):
for j in range(s.shape[1]):
np.min(s[:,j])
print("numpy min: %.3f seconds" % (time.time() - t))
aW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCB0aW1lCgpSRVBTID0gMjAwCgpzID0gbnAub25lcyg1MDApLnJlc2hhcGUoMjUsMjApCgp0ID0gdGltZS50aW1lKCkKZm9yIGkgaW4gcmFuZ2UoUkVQUyk6Cglmb3IgaiBpbiByYW5nZShzLnNoYXBlWzFdKToKCQltaW4oc1s6LGpdKQpwcmludCgiYnVpbHRpbiBtaW46ICUuM2Ygc2Vjb25kcyIgJSAodGltZS50aW1lKCkgLSB0KSkKCnQgPSB0aW1lLnRpbWUoKQpmb3IgaSBpbiByYW5nZShSRVBTKToKCWZvciBqIGluIHJhbmdlKHMuc2hhcGVbMV0pOgoJCW5wLm1pbihzWzosal0pCnByaW50KCJudW1weSAgIG1pbjogJS4zZiBzZWNvbmRzIiAlICh0aW1lLnRpbWUoKSAtIHQpKQ==