Python 3 · Testing and tools

Time a snippet

Measure how long a statement takes.

python -m timeit "sum(range(1000))"

Official Python 3 documentation

More testing and tools commands

All testing and tools commands · Python 3 cheatsheet

Was this page helpful?