Comparison
py-spy vs pyinstrument vs scalene vs viztracer
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 pyinstrumentScalene: A high-resolution, low-overhead CPU, GPU, and memory profiler for Python with AI-powered optimization suggestions
Actively maintained. Last release 6 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
pip install scaleneA 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 viztracerIn short
- py-spy is the most used: 21.7M downloads a month, 2.3× more than pyinstrument.
- scalene is better maintained: Pythie’s Index 84 against 71.
- py-spy is growing fastest: downloads +11% over the last month.
- Safe default for a new project: py-spy, or scalene if active maintenance matters most.
Side by side
| Metric | py-spy | pyinstrument | scalene | viztracer |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 71 | Pythie’s Index: 76 | Pythie’s Index: 84 | Pythie’s Index: 36 |
| Verdict | Actively maintained | Actively maintained | Actively maintained | Low maintenance activity |
| Downloads / month | 21.7M | 9.5M | 298.8K | 1.4M |
| Downloads, month over month | +11% | +7% | -13% | +4% |
| GitHub stars | 15.7K | 8K | 13.6K | 7.8K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 25 | 81 | 5 | 11 |
| Last release | Nov 19, 2026 | Nov 27, 2026 | Oct 23, 2026 | Nov 11, 2025 |
| Releases, 12 months | 3 | 3 | 10 | 0 |
| Weeks with commits | 8 / 26 | 12 / 26 | 14 / 26 | 7 / 26 |
| Recent contributors | 36 | 12 | 8 | 10 |
| First release | Aug 2018 | Jun 2014 | Dec 2019 | Aug 2020 |
| Python versions | – | – | 3.8 – 3.14 | 3.10 – 3.14 |
| License | MIT | non-standard | non-standard | Apache-2.0 |
| 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.