9–11 Jul 2007
Vilnius, Lithuania
Europe/Zurich timezone

Measuring Python Performance

11 Jul 2007, 12:00
30m
Theta (Vilnius, Lithuania)

Theta

Vilnius, Lithuania

Python Language and Libraries Python Language and Libraries

Speaker

Andrew Dalke Dalke (Dalke Scientific Software, LLC)

Description

"Make it work, ... then make it fast". "If you can't measure it, it doesn't exist." Both useful adages, but how do you measure the performance of a Python program and identify bottlenecks? In my talk I'll start with generating simple timing numbers and how to interpret the results. I'll show how to use Python's profiler and convert the results for kcachegrind, a KDE profile visualization tool. Sometimes function-call level information is too detailed or otherwise inappropriate so I'll show how to instrument and create higher level traces for kcachegrind. I used all of these techniques while consulting for AstraZeneca's R&D group. I'll base many of my examples on that experience, and describe some of ways to improve overall performance.

Primary author

Andrew Dalke Dalke (Dalke Scientific Software, LLC)

Presentation materials

There are no materials yet.