Measuring runtime#
Learning Objectives#
After working through this topic, you should be able to:
Explain why it is important to use realistic inputs for measuring runtime
Use
%timeit
andtime.perf_counter
to measure the runtime of functions
Materials#
Download the slides.