pub struct BenchmarkSuite { /* private fields */ }Expand description
Benchmark suite for running multiple algorithm comparisons
Implementations§
Source§impl BenchmarkSuite
impl BenchmarkSuite
Sourcepub fn new(config: BenchmarkConfig) -> BenchmarkSuite
pub fn new(config: BenchmarkConfig) -> BenchmarkSuite
Create a new benchmark suite
Sourcepub fn add_benchmark(
&mut self,
name: impl Into<String>,
benchmark: AlgorithmBenchmark,
)
pub fn add_benchmark( &mut self, name: impl Into<String>, benchmark: AlgorithmBenchmark, )
Add an algorithm benchmark to the suite
Sourcepub fn run(&self) -> Result<BenchmarkResults, SklearsError>
pub fn run(&self) -> Result<BenchmarkResults, SklearsError>
Run all benchmarks in the suite
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