Comparison
line-profiler vs pyinstrument
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 6 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
$
pip install line-profilerCall stack profiler for Python. Shows you why your code is slow!
Actively maintained. Last release 3 days ago, commits in 13 of the last 26 weeks. A safe choice.
$
pip install pyinstrumentIn short
- pyinstrument is the most used: 9.3M downloads a month, 4.7× more than line-profiler.
- Maintenance is comparable: pyinstrument 78, line-profiler 77 on Pythie’s Index.
- Safe default for a new project: pyinstrument.
Side by side
| Metric | line-profiler | pyinstrument |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 77 | 78 |