Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2014 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/31c99d0ce30080a158f2 to your computer and use it in GitHub Desktop.
Save anonymous/31c99d0ce30080a158f2 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