pub struct CacheBenchmarkSuite { /* private fields */ }Expand description
Benchmark suite for intelligent cache
Implementations§
Source§impl CacheBenchmarkSuite
impl CacheBenchmarkSuite
Sourcepub fn new(
cache_config: UnifiedCacheConfig,
bench_config: BenchmarkConfig,
) -> Self
pub fn new( cache_config: UnifiedCacheConfig, bench_config: BenchmarkConfig, ) -> Self
Create a new benchmark suite
Sourcepub async fn run_all_benchmarks(&self) -> Vec<BenchmarkResult>
pub async fn run_all_benchmarks(&self) -> Vec<BenchmarkResult>
Run all benchmarks
Sourcepub async fn benchmark_sequential_operations(&self) -> BenchmarkResult
pub async fn benchmark_sequential_operations(&self) -> BenchmarkResult
Benchmark sequential operations
Sourcepub async fn benchmark_concurrent_operations(&self) -> BenchmarkResult
pub async fn benchmark_concurrent_operations(&self) -> BenchmarkResult
Benchmark concurrent operations
Sourcepub async fn benchmark_mixed_workload(&self) -> BenchmarkResult
pub async fn benchmark_mixed_workload(&self) -> BenchmarkResult
Benchmark mixed workload (reads and writes)
Sourcepub async fn benchmark_hit_rate_optimization(&self) -> BenchmarkResult
pub async fn benchmark_hit_rate_optimization(&self) -> BenchmarkResult
Benchmark hit rate optimization
Sourcepub async fn benchmark_memory_efficiency(&self) -> BenchmarkResult
pub async fn benchmark_memory_efficiency(&self) -> BenchmarkResult
Benchmark memory efficiency
Sourcepub async fn benchmark_predictive_preheating(&self) -> BenchmarkResult
pub async fn benchmark_predictive_preheating(&self) -> BenchmarkResult
Benchmark predictive preheating
Sourcepub async fn benchmark_adaptive_tuning(&self) -> BenchmarkResult
pub async fn benchmark_adaptive_tuning(&self) -> BenchmarkResult
Benchmark adaptive tuning
Sourcepub async fn benchmark_high_contention(&self) -> BenchmarkResult
pub async fn benchmark_high_contention(&self) -> BenchmarkResult
Benchmark high contention scenarios
Sourcepub async fn benchmark_large_dataset(&self) -> BenchmarkResult
pub async fn benchmark_large_dataset(&self) -> BenchmarkResult
Benchmark large dataset handling
Sourcepub async fn get_cache_stats(&self) -> UnifiedCacheStats
pub async fn get_cache_stats(&self) -> UnifiedCacheStats
Get cache statistics
Sourcepub async fn get_performance_metrics(&self) -> PerformanceMetrics
pub async fn get_performance_metrics(&self) -> PerformanceMetrics
Get performance metrics
Auto Trait Implementations§
impl Freeze for CacheBenchmarkSuite
impl !RefUnwindSafe for CacheBenchmarkSuite
impl Send for CacheBenchmarkSuite
impl Sync for CacheBenchmarkSuite
impl Unpin for CacheBenchmarkSuite
impl UnsafeUnpin for CacheBenchmarkSuite
impl !UnwindSafe for CacheBenchmarkSuite
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