IPython's %timeit magic is not easily fooled -- it can spot memoisation! I'm impressed.