pub struct BenchmarkConfig {Show 14 fields
pub iterations: usize,
pub warmup_iterations: usize,
pub sample_sizes: Vec<usize>,
pub feature_counts: Vec<usize>,
pub measure_memory: bool,
pub measure_throughput: bool,
pub enable_cpu_profiling: bool,
pub enable_cache_analysis: bool,
pub enable_parallel_profiling: bool,
pub max_duration: Duration,
pub confidence_level: f64,
pub enable_convergence_detection: bool,
pub tags: HashMap<String, String>,
pub outlier_threshold: f64,
}Expand description
Advanced benchmark configuration
Fields§
§iterations: usizeNumber of iterations for each benchmark
warmup_iterations: usizeWarmup iterations before timing
sample_sizes: Vec<usize>Sample sizes to test
feature_counts: Vec<usize>Feature counts to test
measure_memory: boolWhether to include memory usage measurements
measure_throughput: boolWhether to include throughput measurements
enable_cpu_profiling: boolEnable CPU profiling
enable_cache_analysis: boolEnable cache miss analysis
enable_parallel_profiling: boolEnable parallel execution profiling
max_duration: DurationMaximum benchmark duration per test
confidence_level: f64Statistical confidence level (0.0 to 1.0)
enable_convergence_detection: boolEnable convergence detection
Custom benchmark tags for categorization
outlier_threshold: f64Outlier detection threshold (number of standard deviations)
Implementations§
Source§impl BenchmarkConfig
impl BenchmarkConfig
Sourcepub fn iterations(self, iterations: usize) -> Self
pub fn iterations(self, iterations: usize) -> Self
Set number of iterations
Sourcepub fn warmup_iterations(self, warmup: usize) -> Self
pub fn warmup_iterations(self, warmup: usize) -> Self
Set warmup iterations
Sourcepub fn sample_sizes(self, sizes: Vec<usize>) -> Self
pub fn sample_sizes(self, sizes: Vec<usize>) -> Self
Set sample sizes to test
Sourcepub fn feature_counts(self, counts: Vec<usize>) -> Self
pub fn feature_counts(self, counts: Vec<usize>) -> Self
Set feature counts to test
Sourcepub fn measure_memory(self, enable: bool) -> Self
pub fn measure_memory(self, enable: bool) -> Self
Enable/disable memory measurements
Sourcepub fn measure_throughput(self, enable: bool) -> Self
pub fn measure_throughput(self, enable: bool) -> Self
Enable/disable throughput measurements
Sourcepub fn enable_cpu_profiling(self, enable: bool) -> Self
pub fn enable_cpu_profiling(self, enable: bool) -> Self
Enable/disable CPU profiling
Sourcepub fn enable_cache_analysis(self, enable: bool) -> Self
pub fn enable_cache_analysis(self, enable: bool) -> Self
Enable/disable cache analysis
Sourcepub fn enable_parallel_profiling(self, enable: bool) -> Self
pub fn enable_parallel_profiling(self, enable: bool) -> Self
Enable/disable parallel profiling
Sourcepub fn max_duration(self, duration: Duration) -> Self
pub fn max_duration(self, duration: Duration) -> Self
Set maximum benchmark duration
Sourcepub fn confidence_level(self, level: f64) -> Self
pub fn confidence_level(self, level: f64) -> Self
Set statistical confidence level
Sourcepub fn enable_convergence_detection(self, enable: bool) -> Self
pub fn enable_convergence_detection(self, enable: bool) -> Self
Enable/disable convergence detection
Sourcepub fn outlier_threshold(self, threshold: f64) -> Self
pub fn outlier_threshold(self, threshold: f64) -> Self
Set outlier detection threshold
Trait Implementations§
Source§impl Clone for BenchmarkConfig
impl Clone for BenchmarkConfig
Source§fn clone(&self) -> BenchmarkConfig
fn clone(&self) -> BenchmarkConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BenchmarkConfig
impl Debug for BenchmarkConfig
Auto Trait Implementations§
impl Freeze for BenchmarkConfig
impl RefUnwindSafe for BenchmarkConfig
impl Send for BenchmarkConfig
impl Sync for BenchmarkConfig
impl Unpin for BenchmarkConfig
impl UnwindSafe for BenchmarkConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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