pub struct BenchmarkComparison {
pub reference_median_ns: f64,
pub candidate_median_ns: f64,
pub ratio: f64,
pub tolerance: f64,
pub passed: bool,
}Expand description
One benchmark’s variance-calibrated reference/candidate decision.
Fields§
§reference_median_ns: f64Median reference time in nanoseconds.
candidate_median_ns: f64Median candidate time in nanoseconds.
ratio: f64Candidate/reference ratio.
tolerance: f64Allowed relative slowdown, derived from repeated-run MAD with a floor.
passed: boolWhether this benchmark stayed within its tolerance, or its candidate passes overlapped the reference passes.
Trait Implementations§
Source§impl Clone for BenchmarkComparison
impl Clone for BenchmarkComparison
Source§fn clone(&self) -> BenchmarkComparison
fn clone(&self) -> BenchmarkComparison
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 BenchmarkComparison
impl Debug for BenchmarkComparison
Source§impl<'de> Deserialize<'de> for BenchmarkComparison
impl<'de> Deserialize<'de> for BenchmarkComparison
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 BenchmarkComparison
impl PartialEq for BenchmarkComparison
Source§impl Serialize for BenchmarkComparison
impl Serialize for BenchmarkComparison
impl StructuralPartialEq for BenchmarkComparison
Auto Trait Implementations§
impl Freeze for BenchmarkComparison
impl RefUnwindSafe for BenchmarkComparison
impl Send for BenchmarkComparison
impl Sync for BenchmarkComparison
impl Unpin for BenchmarkComparison
impl UnsafeUnpin for BenchmarkComparison
impl UnwindSafe for BenchmarkComparison
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