Skip to content

Option to track statistics via an accumulator only #472

@weaversam8

Description

@weaversam8

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:

  • Median
  • 99th percentile

Thoughts on this idea?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions