Is there any simple way to benchmark Python script?
Have a look at timeit, the python profiler and pycallgraph. Also make sure to have a look at the comment below by nikicc mentioning “SnakeViz“. It gives you yet another visualisation of profiling data which can be helpful. timeit Essentially, you can pass it python code as a string parameter, and it will run in … Read more