pub struct BenchmarkMetric {
pub ns_per_iter: f64,
pub variance_ns: f64,
}Expand description
A single benchmark measurement in nanoseconds per iteration.
Fields§
§ns_per_iter: f64Mean nanoseconds per iteration.
variance_ns: f64Variance in nanoseconds per iteration (+/- bound).
Trait Implementations§
Source§impl Clone for BenchmarkMetric
impl Clone for BenchmarkMetric
Source§fn clone(&self) -> BenchmarkMetric
fn clone(&self) -> BenchmarkMetric
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BenchmarkMetric
impl Debug for BenchmarkMetric
Source§impl<'de> Deserialize<'de> for BenchmarkMetric
impl<'de> Deserialize<'de> for BenchmarkMetric
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BenchmarkMetric
impl PartialEq for BenchmarkMetric
Source§impl Serialize for BenchmarkMetric
impl Serialize for BenchmarkMetric
impl StructuralPartialEq for BenchmarkMetric
Auto Trait Implementations§
impl Freeze for BenchmarkMetric
impl RefUnwindSafe for BenchmarkMetric
impl Send for BenchmarkMetric
impl Sync for BenchmarkMetric
impl Unpin for BenchmarkMetric
impl UnsafeUnpin for BenchmarkMetric
impl UnwindSafe for BenchmarkMetric
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