While measuring the execution time of a large amount of code, perf_counter()
it might return different results. in such cases what we would like to do is get an average estimate of the execution time. For this, we could use the timeit
module which is specifically designed to measure the performance of code.