1 2 3 4 5 6 7 8
import random import time M = 40000000 a = [(random.random(), random.random()) for x in xrange(M)] print "generated" c = time.clock() a.sort() print "elapsed: %s" % (time.clock() - c)
1
Timeout