While preparing to write the "Writing Faster Python" series, the first problem I faced was "How do I benchmark a piece of code in an objective, yet uncomplicated way".I could run python -m timeit <piece of code> which is probably the simplest way of measuring how long it takes to execute some code.
[
add
]
[
|
|
...
]