pub struct Stats {
pub ns_per_iter: f64,
pub goodness_of_fit: f64,
pub iterations: usize,
pub samples: usize,
}
Expand description
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§
source§impl PartialEq<Stats> for Stats
impl PartialEq<Stats> for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more