ionelmc / pytest-benchmark

py.test fixture for benchmarking code
BSD 2-Clause "Simplified" License
1.22k stars 115 forks source link

Feature request: Profiling is done cumulatively on iterations #245

Open ckutlu opened 11 months ago

ckutlu commented 11 months ago

I just found out the --benchmark-cprofile switch and it is definitely a great thing to include! From what I understood, the function to be benchmarked is ran additionally once after the benchmark runs. It would be great to have a CLI switch to make it run so that a whole round is profiled (taking the iterations into account). Would that be possible?