chapter 12: Performance – Tracking and Reducing Your Memory and CPU Usage

What is performance? 1182 Timeit – comparing code snippet performance 1183 cProfile – finding the slowest components 1187 Line profiler 1197 Improving performance 1199 Memory usage 1205 Performance monitoring 1218 Summary

12.1 What is performance?

12.1.1 Linux

Automatic Install Script

$ sudo wget -qO- https://get.docker.com/ | sh

remove hell-world

$ sudo docker rm `sudo docker ps -aq`
$ sudo docker rmi hello-world

.

12.2 Timeit – comparing code snippet performance

12.3 cProfile – finding the slowest components

12.4 Line profiler

12.5 Improving performance

12.6 Memory usage

12.7 Performance monitoring

12.8 Summary