I understand the concept of what timeit does but I am not sure how to implement it in my code.
timeit
How can I compare two functions, say insertion_sort
insertion_sort
import timeit def oct(x): return x*x timeit.Timer("for x in range(100): oct(x)", "gc.enable()").timeit()