Tool
Python
Intermediate
35 min
Flame graphs with py-spy: see which call chain takes the time
Afterwards you can record a flame graph of a Python script with py-spy, read off the slow call chain, check it with pyinstrument, and compare two runs.