pub struct OptimizerComparison<O: Optimizer + Clone> { /* private fields */ }Expand description
Multi-optimizer comparison suite
Implementations§
Source§impl<O: Optimizer + Clone> OptimizerComparison<O>
impl<O: Optimizer + Clone> OptimizerComparison<O>
Sourcepub fn add_optimizer<F>(self, name: &str, factory: F) -> Selfwhere
F: Fn() -> OptimizerResult<O> + 'static,
pub fn add_optimizer<F>(self, name: &str, factory: F) -> Selfwhere
F: Fn() -> OptimizerResult<O> + 'static,
Add an optimizer to the comparison
Sourcepub fn with_config(self, config: BenchmarkConfig) -> Self
pub fn with_config(self, config: BenchmarkConfig) -> Self
Set custom benchmark configuration
Sourcepub fn run_comparison_suite(&self) -> OptimizerResult<Vec<ComparisonResult>>
pub fn run_comparison_suite(&self) -> OptimizerResult<Vec<ComparisonResult>>
Run comprehensive comparison between all optimizers
Sourcepub fn print_comparison_table(&self, results: &[ComparisonResult])
pub fn print_comparison_table(&self, results: &[ComparisonResult])
Print detailed comparison table
Sourcepub fn export_json(
&self,
results: &[ComparisonResult],
filename: &str,
) -> OptimizerResult<()>
pub fn export_json( &self, results: &[ComparisonResult], filename: &str, ) -> OptimizerResult<()>
Export comparison results to JSON
Trait Implementations§
Auto Trait Implementations§
impl<O> !RefUnwindSafe for OptimizerComparison<O>
impl<O> !Send for OptimizerComparison<O>
impl<O> !Sync for OptimizerComparison<O>
impl<O> !UnwindSafe for OptimizerComparison<O>
impl<O> Freeze for OptimizerComparison<O>
impl<O> Unpin for OptimizerComparison<O>
impl<O> UnsafeUnpin for OptimizerComparison<O>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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