Currently, Benchee stores all samples while benchmarking. This can cause some problems with memory usage and reporting, like those mentioned in #326 and bencheeorg/benchee_html#3.
Could we introduce a configuration option to instruct Benchee to store only metrics that can be calculated using accumulators? That way, instead of storing each sample, Benchee can store the accumulator and perform the final calculation at the end. This could reduce memory usage (and disk usage when saving previous benchmark runs) significantly.
Some statistics Benchee currently tracks wouldn't be supported under this option, since they can't be calculated via accumulator.
Statistics that would still work:
Statistics that would not work:
Thoughts on this idea?
Currently, Benchee stores all samples while benchmarking. This can cause some problems with memory usage and reporting, like those mentioned in #326 and bencheeorg/benchee_html#3.
Could we introduce a configuration option to instruct Benchee to store only metrics that can be calculated using accumulators? That way, instead of storing each sample, Benchee can store the accumulator and perform the final calculation at the end. This could reduce memory usage (and disk usage when saving previous benchmark runs) significantly.
Some statistics Benchee currently tracks wouldn't be supported under this option, since they can't be calculated via accumulator.
Statistics that would still work:
Statistics that would not work:
Thoughts on this idea?