Comparison
py-spy vs pyinstrument 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 12 days 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 4 days ago, commits in 11 of the last 26 weeks. A safe choice.
$
pip install pyinstrumentYet Another Python Profiler
Maintained. Last release 9 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install yappiIn short
- py-spy is the most used: 21.4M downloads a month, 2.4× more than pyinstrument.
- Maintenance is comparable: pyinstrument 74, py-spy 71, yappi 48 on Pythie’s Index.
- py-spy is growing fastest: downloads +11% over the last month.
- Safe default for a new project: py-spy.
Side by side
| Metric | py-spy | pyinstrument | yappi |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 71 | 74 |