-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
Description
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:
- Average
- Iterations per second
- Standard Deviation (if variance was calculated thru something like Welford's Online Algorithm)
Statistics that would not work:
- Median
- 99th percentile
Thoughts on this idea?
bartblast