pub struct PerformanceComparator { /* private fields */ }
Expand description
Performance comparator
Implementations§
Source§impl PerformanceComparator
impl PerformanceComparator
Sourcepub fn add_baseline_result(&mut self, result: PerformanceTestResult)
pub fn add_baseline_result(&mut self, result: PerformanceTestResult)
Add baseline test result
Sourcepub fn add_optimized_result(&mut self, result: PerformanceTestResult)
pub fn add_optimized_result(&mut self, result: PerformanceTestResult)
Add optimized test result
Sourcepub fn set_test_configuration(&mut self, config: TestConfiguration)
pub fn set_test_configuration(&mut self, config: TestConfiguration)
Set test configuration
Sourcepub fn generate_comparison_report(
&self,
) -> TrackingResult<PerformanceComparisonReport>
pub fn generate_comparison_report( &self, ) -> TrackingResult<PerformanceComparisonReport>
Generate performance comparison report
Sourcepub fn print_comparison_report(&self, report: &PerformanceComparisonReport)
pub fn print_comparison_report(&self, report: &PerformanceComparisonReport)
Print comparison report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceComparator
impl RefUnwindSafe for PerformanceComparator
impl Send for PerformanceComparator
impl Sync for PerformanceComparator
impl Unpin for PerformanceComparator
impl UnwindSafe for PerformanceComparator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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