pub struct BenchmarkStats {
pub function: String,
pub samples: usize,
pub mean_ns: Option<u64>,
pub median_ns: Option<u64>,
pub p95_ns: Option<u64>,
pub min_ns: Option<u64>,
pub max_ns: Option<u64>,
pub resource_usage: Option<BenchmarkResourceUsage>,
pub failure: Option<BenchmarkFailureStats>,
}Expand description
Canonical statistics and diagnostics for one benchmark function.
Fields§
§function: String§samples: usize§mean_ns: Option<u64>§median_ns: Option<u64>§p95_ns: Option<u64>§min_ns: Option<u64>§max_ns: Option<u64>§resource_usage: Option<BenchmarkResourceUsage>§failure: Option<BenchmarkFailureStats>Trait Implementations§
Source§impl Clone for BenchmarkStats
impl Clone for BenchmarkStats
Source§impl Debug for BenchmarkStats
impl Debug for BenchmarkStats
Source§impl<'de> Deserialize<'de> for BenchmarkStats
impl<'de> Deserialize<'de> for BenchmarkStats
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
Auto Trait Implementations§
impl Freeze for BenchmarkStats
impl RefUnwindSafe for BenchmarkStats
impl Send for BenchmarkStats
impl Sync for BenchmarkStats
impl Unpin for BenchmarkStats
impl UnsafeUnpin for BenchmarkStats
impl UnwindSafe for BenchmarkStats
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