pub struct BenchMetric { /* private fields */ }Expand description
Timing and throughput telemetry for a single micro- or macro-benchmark.
Implementations§
Source§impl BenchMetric
impl BenchMetric
pub fn get_name(&self) -> &String
pub fn get_iterations(&self) -> usize
pub fn get_total_micros(&self) -> u64
pub fn get_ns_per_op(&self) -> f64
pub fn get_ops_per_sec(&self) -> f64
pub fn get_detail(&self) -> &String
Trait Implementations§
Source§impl Clone for BenchMetric
impl Clone for BenchMetric
Source§impl Debug for BenchMetric
impl Debug for BenchMetric
Source§impl<'de> Deserialize<'de> for BenchMetric
impl<'de> Deserialize<'de> for BenchMetric
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 BenchMetric
impl PartialEq for BenchMetric
Source§impl Serialize for BenchMetric
impl Serialize for BenchMetric
impl StructuralPartialEq for BenchMetric
Auto Trait Implementations§
impl Forget for BenchMetric
impl Freeze for BenchMetric
impl Move for BenchMetric
impl RefUnwindSafe for BenchMetric
impl Send for BenchMetric
impl Sync for BenchMetric
impl Unpin for BenchMetric
impl UnsafeUnpin for BenchMetric
impl UnwindSafe for BenchMetric
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