pub struct BenchmarkSuite { /* private fields */ }Expand description
Benchmark suite for comparing multiple strategies
Implementations§
Source§impl BenchmarkSuite
impl BenchmarkSuite
Sourcepub fn new(config: BenchmarkConfig) -> Self
pub fn new(config: BenchmarkConfig) -> Self
Create a new benchmark suite
Sourcepub fn benchmark_transformer<T>(
&mut self,
name: &str,
transformer: &T,
) -> SklResult<()>
pub fn benchmark_transformer<T>( &mut self, name: &str, transformer: &T, ) -> SklResult<()>
Benchmark a transformation strategy
Sourcepub fn benchmark_composition_strategies(&mut self) -> SklResult<()>
pub fn benchmark_composition_strategies(&mut self) -> SklResult<()>
Benchmark pipeline composition strategies
Sourcepub fn comparison_report(&self) -> BenchmarkReport
pub fn comparison_report(&self) -> BenchmarkReport
Generate comparison report
Sourcepub fn best_strategy(
&self,
dimensions: (usize, usize),
) -> Option<(&str, &BenchmarkResult)>
pub fn best_strategy( &self, dimensions: (usize, usize), ) -> Option<(&str, &BenchmarkResult)>
Get the best performing strategy for given dimensions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchmarkSuite
impl RefUnwindSafe for BenchmarkSuite
impl Send for BenchmarkSuite
impl Sync for BenchmarkSuite
impl Unpin for BenchmarkSuite
impl UnwindSafe for BenchmarkSuite
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> 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