Comparison
memray vs pyinstrument vs scalene vs viztracer
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 7 days ago, commits in 15 of the last 26 weeks. A safe choice.
pip install memrayCall 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 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
- memray is the most used: 9.5M downloads a month.
- Maintenance is comparable: memray 86, scalene 84, pyinstrument 74, viztracer 36 on Pythie’s Index.
- Safe default for a new project: memray.
Side by side
| Metric | memray | pyinstrument | scalene | viztracer |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 86 | 74 |