Python 3 · Testing and tools

Profile a script

Show which functions take the most time.

python -m cProfile -s cumtime script.py

Official Python 3 documentation

More testing and tools commands

All testing and tools commands · Python 3 cheatsheet

Was this page helpful?