O'Reilly logo

Learn More Python 3 the Hard Way: The Next Step for New Python Programmers by Zed A. Shaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise 18. Measuring Performance

In this exercise you’re going to learn to use several tools to analyze the performance of the data structures and algorithms you’ve created. To keep this introduction focused and small we’ll look at the performance of the sorting.py algorithms from Exercise 16, and then in the video I’ll analyze the performance of all the data structures we’ve done so far.

Performance analysis and tuning is one of my favorite activities in computer programming. I’m that guy who will sit with a ball of tangled yarn while I watch TV and just pick it apart until it’s all nice and orderly. I love teasing apart complicated mysteries, and code performance is one of the best complicated mysteries. There are also nice, useful tools ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required