pub struct HistoricalResults { /* private fields */ }Expand description
Historical benchmark results for regression analysis
Implementations§
Source§impl HistoricalResults
impl HistoricalResults
Sourcepub fn with_baseline(self, baseline: HashMap<String, BenchmarkResult>) -> Self
pub fn with_baseline(self, baseline: HashMap<String, BenchmarkResult>) -> Self
Set baseline data for comparison
Sourcepub fn with_historical_run(
self,
timestamp: SystemTime,
results: HashMap<String, BenchmarkResult>,
) -> Self
pub fn with_historical_run( self, timestamp: SystemTime, results: HashMap<String, BenchmarkResult>, ) -> Self
Add historical run data
Sourcepub fn with_historical_runs(self, runs: Vec<TimestampedResults>) -> Self
pub fn with_historical_runs(self, runs: Vec<TimestampedResults>) -> Self
Add multiple historical runs
Sourcepub fn with_previous_run(self, run: TimestampedResults) -> Self
pub fn with_previous_run(self, run: TimestampedResults) -> Self
Set the previous run (most recent historical run)
Sourcepub fn baseline_data(&self) -> &HashMap<String, BenchmarkResult>
pub fn baseline_data(&self) -> &HashMap<String, BenchmarkResult>
Get baseline data
Sourcepub fn historical_runs(&self) -> &Vec<TimestampedResults>
pub fn historical_runs(&self) -> &Vec<TimestampedResults>
Get historical runs
Trait Implementations§
Source§impl Clone for HistoricalResults
impl Clone for HistoricalResults
Source§fn clone(&self) -> HistoricalResults
fn clone(&self) -> HistoricalResults
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 HistoricalResults
impl Debug for HistoricalResults
Auto Trait Implementations§
impl Freeze for HistoricalResults
impl RefUnwindSafe for HistoricalResults
impl Send for HistoricalResults
impl Sync for HistoricalResults
impl Unpin for HistoricalResults
impl UnsafeUnpin for HistoricalResults
impl UnwindSafe for HistoricalResults
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