Python 3 · Testing and tools
Time a snippet
Measure how long a statement takes.
python -m timeit "sum(range(1000))"
Official Python 3 documentation
Python 3 · Testing and tools
Measure how long a statement takes.
python -m timeit "sum(range(1000))"
Official Python 3 documentation
Was this page helpful?