-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question/FR] measuring execution time along the memory usage #347
Comments
After reading around, I came up with:
But testing it with:
The memory results are completely wrong; it reports zero memory usage for all runs after the first one. My guess is that Python is reusing free but claimed memory, thus not increasing its total OS memory usage. But I expect |
I am closing this issue in favor of the clearer issue I submitted today. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: