2 comments

1

Thanks for the guide. I've always been disappointed with Python's built-in debugging and profiling tools, even as the popularity of the language has increased. The built-in profiler still doesn't have good threading support, and built-in memory inspection tools are essentially nonexistent.

The maintainers of Python should take a look at jmap and jhat from the Java world for examples of informative and usable analysis utilities provided by the language.

0

Glad you like it!

I was googling for how to time some slightly different implementations of an algorithm in python and I found this guide. Definitely useful if you ever have a need for more serious performance metrics in Python.