Struct easybench::Stats [] [src]

pub struct Stats {
    pub ns_per_iter: f64,
    pub goodness_of_fit: f64,
    pub iterations: usize,
    pub samples: usize,
}

Statistics for a benchmark run.

Fields

The gradient of the regression line.

This gives us the time, in nanoseconds, per iteration.

The coefficient of determination, R².

This is an indication of how noisy the benchmark was, where 1 is good and 0 is bad. Be suspicious of values below 0.9.

How many times the benchmarked code was actually run.

How many samples were taken (ie. how many times we allocated the environment and measured the time).

Trait Implementations

impl Debug for Stats
[src]

Formats the value using the given formatter.

impl Display for Stats
[src]

Formats the value using the given formatter. Read more