Comparison
hunter vs line-profiler vs pyinstrument vs viztracer
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Hunter is a flexible code tracing toolkit.
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install hunterLine-by-line profiler
Actively maintained. Last release 7 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 6 days ago, commits in 11 of the last 26 weeks. A safe choice.
pip install pyinstrumentA 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
- pyinstrument is the most used: 9.4M downloads a month, 4.7× more than line-profiler.
- Maintenance is comparable: line-profiler 77, pyinstrument 74, viztracer 36, hunter 19 on Pythie’s Index.
- Safe default for a new project: pyinstrument.
Side by side
| Metric | hunter | line-profiler | pyinstrument | viztracer |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | 77 |