/** * SMI-738: Cache Operation Benchmarks * * Measures performance of cache operations: * - L1 (LRU) cache get/set operations * - L2 (SQLite) cache persistence * - Tiered cache hit/miss patterns * - Cache invalidation performance * - TTL tier calculations */ import { type BenchmarkReport, type BenchmarkConfig } from './BenchmarkRunner.js'; /** * Cache benchmark configuration */ export interface CacheBenchmarkConfig extends BenchmarkConfig { /** Number of entries to pre-populate cache (default: 1000) */ cacheSize?: number; /** L1 cache max size (default: 500) */ l1MaxSize?: number; /** Simulate cache misses ratio (0-1, default: 0.2) */ missRatio?: number; } /** * Performance targets for cache operations */ export declare const CACHE_TARGETS: { l1_get_p50_ms: number; l1_get_p95_ms: number; l2_get_p50_ms: number; l2_get_p95_ms: number; set_p50_ms: number; set_p95_ms: number; invalidate_p50_ms: number; invalidate_p95_ms: number; }; /** * Cache operation benchmark suite */ export declare class CacheBenchmark { private config; private tieredCache; private cacheManager; private testKeys; private testResults; constructor(config?: CacheBenchmarkConfig); /** * Run all cache benchmarks */ run(): Promise; /** * Setup caches with test data */ private setup; /** * Cleanup resources */ private teardown; /** * Generate mock search results */ private generateMockResults; } /** * Validate cache benchmark results against targets */ export declare function validateCacheResults(report: BenchmarkReport): CacheValidationResult; /** * Cache validation result */ export interface CacheValidationResult { passed: boolean; failures: string[]; warnings: string[]; } //# sourceMappingURL=cacheBenchmark.d.ts.map