pub struct BenchmarkSuite { /* private fields */ }Expand description
Comprehensive benchmark suite runner
Provides benchmarking capabilities for SIMD operations with cross-platform support. In no-std environments, timing functionality is limited and operations will be executed but without accurate timing measurements.
Implementations§
Source§impl BenchmarkSuite
impl BenchmarkSuite
Sourcepub fn benchmark<F>(
&mut self,
name: &str,
iterations: u64,
operation: F,
) -> BenchmarkResultwhere
F: FnMut(),
pub fn benchmark<F>(
&mut self,
name: &str,
iterations: u64,
operation: F,
) -> BenchmarkResultwhere
F: FnMut(),
Run a benchmark and record results
In std environments, this provides accurate timing measurements. In no-std environments, the operation is executed but timing is mocked.
Sourcepub fn cross_platform_benchmark<F>(
&mut self,
operation_name: &str,
data_size: usize,
operation: F,
) -> CrossPlatformResult
pub fn cross_platform_benchmark<F>( &mut self, operation_name: &str, data_size: usize, operation: F, ) -> CrossPlatformResult
Run cross-platform comparison
Sourcepub fn get_results(&self) -> &[BenchmarkResult]
pub fn get_results(&self) -> &[BenchmarkResult]
Get all benchmark results
Sourcepub fn generate_report(&self) -> BenchmarkReport
pub fn generate_report(&self) -> BenchmarkReport
Generate performance report
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 UnsafeUnpin 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
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