pub struct CostPerformanceBenchmarkRecipe { /* private fields */ }Expand description
Cost-performance benchmarking recipe
Implementations§
Source§impl CostPerformanceBenchmarkRecipe
impl CostPerformanceBenchmarkRecipe
Sourcepub fn with_budget(self, max_cost: f64) -> Self
pub fn with_budget(self, max_cost: f64) -> Self
Set a budget constraint
Sourcepub fn with_performance_target(self, target: f64) -> Self
pub fn with_performance_target(self, target: f64) -> Self
Set a performance target
Sourcepub fn add_run(&mut self, run: &ExperimentRun, performance_metric: &str)
pub fn add_run(&mut self, run: &ExperimentRun, performance_metric: &str)
Add an experiment run as a data point
Sourcepub fn analyze(&mut self) -> RecipeResult
pub fn analyze(&mut self) -> RecipeResult
Run the benchmark analysis
Sourcepub fn benchmark(&self) -> &CostPerformanceBenchmark
pub fn benchmark(&self) -> &CostPerformanceBenchmark
Get the benchmark
Sourcepub fn benchmark_mut(&mut self) -> &mut CostPerformanceBenchmark
pub fn benchmark_mut(&mut self) -> &mut CostPerformanceBenchmark
Get mutable benchmark
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CostPerformanceBenchmarkRecipe
impl RefUnwindSafe for CostPerformanceBenchmarkRecipe
impl Send for CostPerformanceBenchmarkRecipe
impl Sync for CostPerformanceBenchmarkRecipe
impl Unpin for CostPerformanceBenchmarkRecipe
impl UnwindSafe for CostPerformanceBenchmarkRecipe
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