Comparison
line-profiler vs py-spy vs pyinstrument vs yappi
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Line-by-line profiler
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install line-profilerSampling 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 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.7M downloads a month, 2.3× more than pyinstrument.
- Maintenance is comparable: line-profiler 77, pyinstrument 74, py-spy 71, yappi 48 on Pythie’s Index.
- py-spy is growing fastest: downloads +13% over the last month.
- Safe default for a new project: py-spy.
Side by side
| Metric | line-profiler | py-spy | pyinstrument | yappi |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 77 | Pythie’s Index: 71 | Pythie’s Index: 74 | Pythie’s Index: 48 |
| Verdict | Actively maintained | Actively maintained | Actively maintained | Maintained |
| Downloads / month | 2M | 21.7M | 9.4M | 3.3M |
| Downloads, month over month | -5% | +13% | +10% | +11% |
| GitHub stars | 3.3K | 15.7K | 8K | 1.7K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 83 | 25 | 81 | 25 |
| Last release | Oct 18, 2026 | Nov 19, 2026 | Nov 27, 2026 | Mar 17, 2026 |
| Releases, 12 months | 3 | 3 | 3 | 2 |
| Weeks with commits | 10 / 26 | 8 / 26 | 11 / 26 | 2 / 26 |
| Recent contributors | 11 | 36 | 12 | 6 |
| First release | Jan 2009 | Aug 2018 | Jun 2014 | Aug 2011 |
| Python versions | 3.10 – 3.15 | – | – | 3.9 – 3.14 |
| License | BSD-3-Clause | MIT | non-standard | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.