pub struct Comparison {
pub current_mean: Duration,
pub baseline_mean: Duration,
pub percentage_change: f64,
pub baseline_count: usize,
pub z_score: Option<f64>,
pub confidence_interval: Option<(f64, f64)>,
pub change_probability: Option<f64>,
}Expand description
Comparison between current benchmark run and baseline.
Contains statistical measures to determine if performance has regressed.
Fields§
§current_mean: DurationMean timing from the current run
baseline_mean: DurationMean timing from the baseline
percentage_change: f64Percentage change from baseline (positive = slower)
baseline_count: usizeNumber of baseline samples used for comparison
z_score: Option<f64>Z-score for statistical significance
confidence_interval: Option<(f64, f64)>95% confidence interval for the change
change_probability: Option<f64>Probability that a real change occurred
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Comparison
impl Debug for Comparison
Source§impl<'de> Deserialize<'de> for Comparison
impl<'de> Deserialize<'de> for Comparison
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 Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)