Jupyter · IPython magics and tips
Time a statement
Run a statement many times and report the average. %%timeit does the same for a whole cell.
%timeit sum(range(1000))
Official Jupyter documentation
Jupyter · IPython magics and tips
Run a statement many times and report the average. %%timeit does the same for a whole cell.
%timeit sum(range(1000))
Official Jupyter documentation
Was this page helpful?