O'Reilly logo
  • robert rolnik thinks this is interesting:

as covered in “The timeit module”, -m timeit is often the best way to perform micro-benchmarking of Python statements and expressions.

From

Cover of Python in a Nutshell, 3rd Edition

Note

Interesting to see how the -u 'unbuffered' option will make things faster.