pub struct BenchVec {
pub inner: Vec<Duration>,
}Fields§
§inner: Vec<Duration>Implementations§
Source§impl BenchVec
A struct that stores a vector of Durations for benchmarks
and allows some statistical operations on it
impl BenchVec
A struct that stores a vector of Durations for benchmarks and allows some statistical operations on it
Sourcepub fn from_vec(vec: &Vec<Duration>) -> Self
pub fn from_vec(vec: &Vec<Duration>) -> Self
Creates a BenchVec from an existing vector of Durations
Sourcepub fn standard_deviation(&self) -> f64
pub fn standard_deviation(&self) -> f64
Returns the standard deviation of all durations
Sourcepub fn compare(&self, other: Self) -> DurationDifference
pub fn compare(&self, other: Self) -> DurationDifference
Compares two benchmarks by calculating the average
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchVec
impl RefUnwindSafe for BenchVec
impl Send for BenchVec
impl Sync for BenchVec
impl Unpin for BenchVec
impl UnwindSafe for BenchVec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more