public
Created

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8
In [1]: %timeit sum([(0, 0)] * 1000, ())
100 loops, best of 3: 5.01 ms per loop
 
In [2]: %timeit sum([(0, 0)] * 10000, ())
1 loops, best of 3: 490 ms per loop
 
In [3]: %timeit sum([(0, 0)] * 100000, ())
1 loops, best of 3: 61.9 s per loop

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.