In this article, we will see about timeit module which can be used for performance testing for small functions. Example import timeit timeit.timeit(stmt="filter(None, [None. 2, 3, None, False, 4])", number=10000) stmt is the statement or code snippet to be executed number is the number of times to execute the statement You can also repeat a … Continue reading timeit module