Closed ben9809 closed 11 months ago
Using redirect_stdout
ensures that all output is consistently redirected (in our case suppressed), including output generated by any external libraries or functions called within the benchmark. It is a more elegant and effective means of controlling the benchmark's output behavior based on the quiet
parameter.
Looks nice Benedetto.
This is slightly related thought - what do you think about a "verbose" option which outputs/logs the benchmark results at every evaluation batch? Thus we can get faster feedback per-batch without needing to wait for the whole workload to finish.
Absolutely, it's a fantastic idea to include a "verbose" option.
Do you prefer a logging mechanism for a more structured approach, or do you prefer to use the print function for rapid feedback?
This could be in-line with #32. For now we only have print statements and I think this would be most simple, but in the future we can have a clean logger.
This pull request introduces a 'quiet' parameter to the benchmark.run() function, addressing the issue of excessive output generated during quick benchmark runs.
Related Issue: https://github.com/NeuroBench/neurobench/issues/142#issue-1957995144