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: Duration
Mean of all the durations.
median: Duration
Median of all the durations.
variance: Duration
Variance of all the durations.
min: Duration
Minimum duration amongst all durations.
max: Duration
Maximum duration amongst all durations.
Implementations§
Source§impl BenchmarkComputations
impl BenchmarkComputations
Sourcepub fn new(durations: &BenchmarkDurations) -> BenchmarkComputations
pub fn new(durations: &BenchmarkDurations) -> BenchmarkComputations
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
Source§impl<'de> Deserialize<'de> for BenchmarkComputations
impl<'de> Deserialize<'de> for BenchmarkComputations
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BenchmarkComputations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BenchmarkComputations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BenchmarkComputations
impl PartialEq for BenchmarkComputations
Source§impl Serialize for BenchmarkComputations
impl Serialize for BenchmarkComputations
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BenchmarkComputations
impl StructuralPartialEq for BenchmarkComputations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.