pub struct BenchmarkComparison {
pub name: String,
pub current: BenchmarkStats,
pub baseline: BenchmarkStats,
pub change_percent: f64,
pub is_regression: bool,
pub is_improvement: bool,
pub p_value: Option<f64>,
pub effect_size: f64,
pub is_significant: bool,
}Expand description
Comparison between current and baseline benchmarks
Fields§
§name: String§current: BenchmarkStats§baseline: BenchmarkStats§change_percent: f64§is_regression: bool§is_improvement: bool§p_value: Option<f64>Statistical significance (p-value from Mann-Whitney U test, if distributions available)
effect_size: f64Effect size (Cohen’s d)
is_significant: boolWhether the change is statistically significant (p < 0.05)
Implementations§
Source§impl BenchmarkComparison
impl BenchmarkComparison
Sourcepub fn new(
current: BenchmarkStats,
baseline: BenchmarkStats,
regression_threshold: f64,
improvement_threshold: f64,
) -> Self
pub fn new( current: BenchmarkStats, baseline: BenchmarkStats, regression_threshold: f64, improvement_threshold: f64, ) -> Self
Create a comparison
Sourcepub fn effect_size_interpretation(&self) -> &str
pub fn effect_size_interpretation(&self) -> &str
Get effect size interpretation
Sourcepub fn status_symbol(&self) -> &str
pub fn status_symbol(&self) -> &str
Get status symbol
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BenchmarkComparison
impl RefUnwindSafe for BenchmarkComparison
impl Send for BenchmarkComparison
impl Sync for BenchmarkComparison
impl Unpin 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