psf / pyperf

Toolkit to run Python benchmarks
http://pyperf.readthedocs.io/
MIT License
799 stars 78 forks source link

Support collecting cProfile data from a benchmark #133

Open mdboom opened 2 years ago

mdboom commented 2 years ago

While this wouldn't be useful for absolute timing (benchmarking), it's sometimes handy to generate a profile from a benchmark to understand where the time is being spent. It's currently possible to do this by hacking up a benchmark script, but it would be better to make it as simple as:

python run_benchmark.py --profile output.profile
mdboom commented 2 years ago

I can't self-assign, but to be clear, I'm also offering to do this work ;)