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
ns_per_iter: f64
The time, in nanoseconds, per iteration. If the benchmark generated fewer than 2 samples in the allotted time then this will be NaN.
goodness_of_fit: f64
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.
iterations: usize
How many times the benchmarked code was actually run.
samples: usize
How many samples were taken (ie. how many times we allocated the environment and measured the time).
Trait Implementations
impl Debug for Stats
[src]
impl Debug for Stats
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Stats
[src]
impl PartialEq for Stats
fn eq(&self, other: &Stats) -> bool
[src]
fn eq(&self, other: &Stats) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Stats) -> bool
[src]
fn ne(&self, other: &Stats) -> bool
This method tests for !=
.
impl Clone for Stats
[src]
impl Clone for Stats
fn clone(&self) -> Stats
[src]
fn clone(&self) -> Stats
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for Stats
[src]
impl Display for Stats