Guest User

Untitled

a guest
May 27th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import time
  2. import psyco
  3. psyco.full()
  4. def alloc(size, default = 0): return [default] * size
  5.  
  6. print "No,time"
  7. for i in xrange(9):
  8. t0 = time.clock()
  9. N = pow(10,i)
  10. a = alloc(N)
  11. print "%d,%.2f" % (i,time.clock()-t0)
Add Comment
Please, Sign In to add comment