How to Time Small Pieces of Python Code with timeit
Sometimes when you are coding, you want to know how long it takes for a particular function to run. This topic is known as profiling or performance tuning. Python has a couple of profilers built into its Standard Library, but for small pieces of code, it’s easier to just use Python’s timeit module. Thus, timeit […]
How to Time Small Pieces of Python Code with timeit Read More »