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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more