Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yeyuguo/927ff53b48d69376071ab439e7be0952 to your computer and use it in GitHub Desktop.
Save yeyuguo/927ff53b48d69376071ab439e7be0952 to your computer and use it in GitHub Desktop.
from time import time
t = time()
lista = [1,2,3,4,5,6,7,8,9,10]
listb =[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.01]
len1=len(lista)
len2=len(listb)
for i in xrange (1000000):
for a in xrange(len1):
temp=lista[a]
for b in xrange(len2):
x=temp+listb[b]
print "total run time:"
print time()-t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment