Are there any specific Python libraries to quantify practically both space (memory consumption) and time complexity (time consumption) of a specific function in Python 3.x, by providing avg/max/min stats?
Asked
Active
Viewed 219 times
-2
-
By "space complexity" do you mean "maximum size in RAM over the course of the program"? Do you want the size of one particular data structure or of the entire program? – Rory Daulton Jul 25 '18 at 13:33
-
Yes, should I update the question mentioning this? I mean real experimental space complexity, not theoretical – Guido Jul 25 '18 at 13:47
-
Yes, you should edit your question to make those things that I ask clear. I did not ask about "real" versus "theoretical" since that was already clear in your question. I note that you have not yet answered either of my questions. – Rory Daulton Jul 25 '18 at 13:53
-
Ok sorry, yes I want the amount of used memory in RAM by a function. I update, thank you – Guido Jul 25 '18 at 14:13
-
1Compile a bit of boilerplate code. Compile the same code with the function you want to measure. Compute the difference in memory used. – meowgoesthedog Jul 25 '18 at 15:01