Profile Runtime Speed of Code
Using timeit to measure execution.
import timeit |
In jupyter, use the magic to measure runtime of cell
%%time # for time of single run |
Use cProfiler with snakeviz to get a nice Chart in Jupyter Lab:
# install |
# Add at beginning of Notebook |