pub struct BenchmarkSuite { /* private fields */ }Expand description
Comprehensive benchmark suite
Implementations§
Source§impl BenchmarkSuite
impl BenchmarkSuite
Sourcepub fn with_sizes(self, sizes: Vec<usize>) -> Self
pub fn with_sizes(self, sizes: Vec<usize>) -> Self
Set test sizes
Sourcepub fn with_iterations(self, iterations: usize) -> Self
pub fn with_iterations(self, iterations: usize) -> Self
Set iterations
Sourcepub fn run_all(&mut self) -> &Vec<OptimizationBenchmark>
pub fn run_all(&mut self) -> &Vec<OptimizationBenchmark>
Run all benchmarks
Sourcepub fn combined_speedup(&self) -> f64
pub fn combined_speedup(&self) -> f64
Get combined speedup estimate
Sourcepub fn results(&self) -> &Vec<OptimizationBenchmark>
pub fn results(&self) -> &Vec<OptimizationBenchmark>
Get results
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