Python
Timing of code snippets
on the CLI
python -m timeit -- "for i in range(1000): i**2"
in ipython
u = None
%timeit u is None
Useful interpreter options
python -W ignore # ignore all warnings
python -O # remove assert statements
A complete list of interpreter options can be found here.