I want to benchmark some functions and compare them. (I do NOT want to profile these functions' internals.) I need to run the functions multiple times (more for functions that take less to finish) and get their time and peak memory usage statistics. Basically what https://github.com/JuliaCI/BenchmarkTools.jl does for Julia.
I'd also like to abort the functions when they take more than X minutes.
Is this possible with memory_profiler? Or any other Python packages you happen to know?
Thanks.