BenchmarkTools.jl alternative for Python?

I need to benchmark some algorithms in Python, and I can’t find anything that runs some code multiple times and reports its time and peak memory usage.

Maybe you should ask in a Python forum?

timeit

1 Like

The easiest way I found is using IPython and the %timeit macro.