Comparison
memray vs py-spy vs pyinstrument vs scalene
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A memory profiler for Python applications
Actively maintained. Last release 6 days ago, commits in 15 of the last 26 weeks. A safe choice.
pip install memraySampling profiler for Python programs
Actively maintained. Last release 13 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 5 days ago, commits in 11 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 scaleneIn short
- py-spy is the most used: 21.7M downloads a month, 2.3× more than memray.
- memray is better maintained: Pythie’s Index 86 against 71.
- py-spy is growing fastest: downloads +13% over the last month.
- Safe default for a new project: py-spy, or memray if active maintenance matters most.
Side by side
| Metric | memray | py-spy | pyinstrument | scalene |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 86 | 71 |