3 ms·
I used timeit (http://docs.python.org/2/library/timeit.html http://docs.python.org/2/library/timeit.html), cProfile (http://docs.python.org/2/library/profile.ht
by blaze33 14y ago
I used timeit (http://docs.python.org/2/library/timeit.html http://docs.python.org/2/library/timeit.html), cProfile (http://docs.python.org/2/library/profile.html http://docs.python.org/2/library/profile.html) and pycallgraph. There is a nice Q&A on this subject: http://stackoverflow.com/q/582336/343834 http://stackoverflow.com/q/582336/343834.