Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import time
import random
import psyco
psyco.full()
print "No,time"
for i in xrange(8):
t0 = time.clock()
N = pow(10,i)
for j in xrange(N):
a = random.randint(1,10)
print "%d,%.2f" % (i,time.clock()-t0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.