Duration: 23 minutes
The second part of the screencast we focus more on the measurement and breakdown of time spent in various portions of code. We also cover a few visualization tools and how to read and sort the profiles outputted by cProfile. We run through a real life example of bulk loading users into SQLAlchemy, which goes to show the flow of real life profiling.
Posted on April 23, 2013
Duration: 13 minutes
In the first part of this screencast we cover measuring the execution time of python applications, using simple timestamp calculations, then we discuss more advanced timing modules like timeit available in the standard library. We also cover the difference between the two and how to interpret the data returned. We also touch on the nuances of timing on cross platforms.
Posted on April 10, 2013