Guest User

Untitled

a guest
May 27th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import time
  2. import random
  3. import psyco
  4. psyco.full()
  5.  
  6. a = []
  7. for i in xrange(10000000):
  8. a.append(random.randint(1,100000000))
  9.  
  10. print "No,time"
  11. for i in xrange(8):
  12. N = pow(10,i)
  13. t0 = time.clock()
  14. b = a[:N]
  15. b.sort()
  16. print "%d,%.2f" % (i,time.clock()-t0)
Add Comment
Please, Sign In to add comment