Skip to content

Instantly share code, notes, and snippets.

@Rubisk
Created August 29, 2015 11:44
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 Rubisk/6894c7b12d102dcb2819 to your computer and use it in GitHub Desktop.
Save Rubisk/6894c7b12d102dcb2819 to your computer and use it in GitHub Desktop.
test time
import time
for k in range(10):
t = time.time()
for i, j in zip(range(10000000), range(10000000)):
if(i == j) and (j == 10000000): print 'hi'
print time.time() -t
t = time.time()
for i, j in zip(range(10000000), range(10000000)):
if(i == j):
if(j == 10000000): print 'hi'
print time.time() -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment