pub struct BenchmarkComputations {
pub mean: Duration,
pub median: Duration,
pub variance: Duration,
pub min: Duration,
pub max: Duration,
}Expand description
Computed values from benchmark durations.
Fields§
§mean: DurationMean of all the durations.
median: DurationMedian of all the durations.
variance: DurationVariance of all the durations.
min: DurationMinimum duration amongst all durations.
max: DurationMaximum duration amongst all durations.
Implementations§
Source§impl BenchmarkComputations
impl BenchmarkComputations
Sourcepub fn new(durations: &BenchmarkDurations) -> Self
pub fn new(durations: &BenchmarkDurations) -> Self
Compute duration values and return a BenchmarkComputations struct
Trait Implementations§
Source§impl Clone for BenchmarkComputations
impl Clone for BenchmarkComputations
Source§fn clone(&self) -> BenchmarkComputations
fn clone(&self) -> BenchmarkComputations
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BenchmarkComputations
impl Debug for BenchmarkComputations
Source§impl Default for BenchmarkComputations
impl Default for BenchmarkComputations
Source§fn default() -> BenchmarkComputations
fn default() -> BenchmarkComputations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BenchmarkComputations
impl RefUnwindSafe for BenchmarkComputations
impl Send for BenchmarkComputations
impl Sync for BenchmarkComputations
impl Unpin for BenchmarkComputations
impl UnwindSafe for BenchmarkComputations
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