If you’ve ever wanted to test the performance of two algorithms using Python, you should read Bernhard Knasmueller’s recent article on measuring Python code execution.
The article explains how to eliminate systematic and random measurement errors to get reliable results.