/** * Agentic QE v3 - Performance Benchmarks * * REAL benchmarks that measure actual performance. * Run these BEFORE claiming any O(log n) or performance improvements. * * @module benchmarks/performance-benchmarks */ export interface BenchmarkResult { name: string; operation: string; inputSize: number; iterations: number; totalTimeMs: number; avgTimeMs: number; medianTimeMs: number; minTimeMs: number; maxTimeMs: number; opsPerSecond: number; complexity: string; verified: boolean; details: string; } export interface BenchmarkSuite { suiteName: string; timestamp: string; environment: { nodeVersion: string; platform: string; arch: string; cpuCores: number; }; results: BenchmarkResult[]; summary: string; } /** * Run a benchmark with multiple iterations and collect statistics */ export declare function runBenchmark(name: string, operation: string, fn: () => Promise | void, options?: { iterations?: number; warmupIterations?: number; inputSize?: number; }): Promise; /** * Verify O(log n) complexity by measuring at different input sizes */ export declare function verifyLogNComplexity(name: string, setupFn: (size: number) => Promise<{ runFn: () => Promise | void; cleanup?: () => Promise; }>, sizes?: number[]): Promise<{ verified: boolean; ratio: number; expectedRatio: number; details: string; results: BenchmarkResult[]; }>; /** * Compare two implementations */ export declare function compareImplementations(name: string, impl1: { name: string; fn: () => Promise | void; }, impl2: { name: string; fn: () => Promise | void; }, iterations?: number): Promise<{ winner: string; speedup: number; impl1Result: BenchmarkResult; impl2Result: BenchmarkResult; }>; /** * Benchmark HNSW index operations */ export declare function benchmarkHNSWIndex(): Promise; /** * Benchmark coverage parsing operations */ export declare function benchmarkCoverageParser(): Promise; /** * Benchmark security scanner operations */ export declare function benchmarkSecurityScanner(): Promise; /** * Run all benchmarks and generate a comprehensive report */ export declare function runFullBenchmarkSuite(): Promise; /** * Format benchmark results as markdown */ export declare function formatBenchmarkReport(suite: BenchmarkSuite): string; //# sourceMappingURL=performance-benchmarks.d.ts.map