You cannot improve what you cannot measure, and measuring badly is worse than not measuring, because it gives you confidence in the wrong answer. A single timing of a single run is nearly useless: the machine is doing other things, caches are cold, and Python itself changes speed as it runs. This lesson shows the standard tools, and the rules that make a measurement worth trusting.
More lessons in Complete Python Programming