Search notes:

Python standard library: timeit

timeit is used for precise measurements of code-execution-duration. It temporarily (by default) disables garbage collection and executes a piece of code multiple times to strip out overhead noise.

See also

time.perf_counter()
The modules profile and pstats
standard library

Index