psf / pyperf

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

Programmatically define output file for bench_func #165

Open drewoldag opened 1 year ago

drewoldag commented 1 year ago

I'm having trouble determining how to programmatically set the output file name when using Runner.bench_func().

Is this possible, and if so, are there instructions or examples available?

vstinner commented 1 year ago

In the main process, the function directly returns an object which contains data. Why do you need a filename? Please elaboate your use case.