Comparison
py-spy vs pyinstrument vs viztracer vs yappi
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Sampling profiler for Python programs
Actively maintained. Last release 2 weeks ago, commits in 8 of the last 26 weeks. A safe choice.
pip install py-spyCall stack profiler for Python. Shows you why your code is slow!
Actively maintained. Last release 6 days ago, commits in 12 of the last 26 weeks. A safe choice.
pip install pyinstrumentA debugging and profiling tool that can trace and visualize python code execution
Low maintenance activity. Last release 13 months ago, commits in 7 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install viztracerYet Another Python Profiler
Maintained. Last release 9 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install yappiIn short
- py-spy is the most used: 21.7M downloads a month, 2.3× more than pyinstrument.
- Maintenance is comparable: pyinstrument 76, py-spy 71, yappi 46, viztracer 36 on Pythie’s Index.
- yappi is growing fastest: downloads +13% over the last month.
- Safe default for a new project: py-spy.
Side by side
| Metric | py-spy | pyinstrument | viztracer | yappi |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 71 | 76 |