From Python's official documentation: "A profile is a set of statistics that describes how often and for how long various parts of the program executed." Python's standard library provides two implementations of the same profiling interface: cProfile and profile but I always go with cProfile for short scripts because you can invoke it at run time like … Continue reading Profiling: check how long it takes to run a Python script