import timeit
t1 = timeit.timeit('sum(x*x for x in xrange(10000))',number = 10000)

print t1

05-07 15:56