pub struct PairedComparison {
pub mean_diff_ms: f64,
pub median_diff_ms: f64,
pub pct_change: f64,
pub std_error: f64,
pub ci_95_lower: f64,
pub ci_95_upper: f64,
pub is_significant: bool,
}Expand description
Result of comparing paired statistics, including significance testing.
§Examples
use perfgate_paired::{compare_paired_stats, PairedComparison};
use perfgate_types::{PairedStats, PairedDiffSummary, U64Summary};
let stats = PairedStats {
baseline_wall_ms: U64Summary::new(100, 100, 100 ),
current_wall_ms: U64Summary::new(120, 120, 120 ),
wall_diff_ms: PairedDiffSummary {
mean: 20.0, median: 20.0, std_dev: 3.0,
min: 17.0, max: 23.0, count: 10,
significance: None,
},
baseline_max_rss_kb: None,
current_max_rss_kb: None,
rss_diff_kb: None,
baseline_throughput_per_s: None,
current_throughput_per_s: None,
throughput_diff_per_s: None,
};
let cmp: PairedComparison = compare_paired_stats(&stats);
assert!(cmp.is_significant);
assert_eq!(cmp.mean_diff_ms, 20.0);Fields§
§mean_diff_ms: f64§median_diff_ms: f64§pct_change: f64§std_error: f64§ci_95_lower: f64§ci_95_upper: f64§is_significant: boolTrait Implementations§
Source§impl Clone for PairedComparison
impl Clone for PairedComparison
Source§fn clone(&self) -> PairedComparison
fn clone(&self) -> PairedComparison
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 moreSource§impl Debug for PairedComparison
impl Debug for PairedComparison
Source§impl PartialEq for PairedComparison
impl PartialEq for PairedComparison
impl StructuralPartialEq for PairedComparison
Auto Trait Implementations§
impl Freeze for PairedComparison
impl RefUnwindSafe for PairedComparison
impl Send for PairedComparison
impl Sync for PairedComparison
impl Unpin for PairedComparison
impl UnsafeUnpin for PairedComparison
impl UnwindSafe for PairedComparison
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.