I'll plug timeit, from the standard library as a good approach.
https://docs.python.org/3/library/timeit.html