vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
86 lines • 2.98 kB
TypeScript
export interface BenchmarkOperation {
name: string;
category: 'task_management' | 'execution' | 'storage' | 'cache' | 'memory' | 'io';
targetTime: number;
description: string;
operation: () => Promise<unknown>;
setup?: () => Promise<void>;
cleanup?: () => Promise<void>;
}
export interface BenchmarkResult {
operationName: string;
category: string;
targetTime: number;
actualTime: number;
memoryUsed: number;
iterations: number;
timestamp: Date;
passed: boolean;
improvement?: number;
regression?: number;
}
export interface BenchmarkConfig {
iterations: number;
warmupIterations: number;
targetOverhead: number;
memoryThreshold: number;
enableRegression: boolean;
baselineWindow: number;
}
export interface RegressionReport {
operationName: string;
baselineTime: number;
currentTime: number;
regressionPercentage: number;
severity: 'low' | 'medium' | 'high' | 'critical';
recommendation: string;
}
export declare class PerformanceBenchmarks {
private static instance;
private config;
private performanceMonitor;
private operations;
private results;
private baselines;
private constructor();
static getInstance(config?: BenchmarkConfig): PerformanceBenchmarks;
private initializeDefaultOperations;
registerOperation(operation: BenchmarkOperation): void;
runBenchmark(operationName: string): Promise<BenchmarkResult>;
runAllBenchmarks(): Promise<BenchmarkResult[]>;
runCategoryBenchmarks(category: BenchmarkOperation['category']): Promise<BenchmarkResult[]>;
getBenchmarkResults(operationName: string, limit?: number): BenchmarkResult[];
getAllBenchmarkResults(): Map<string, BenchmarkResult[]>;
detectRegressions(): RegressionReport[];
getPerformanceSummary(): {
totalOperations: number;
passedOperations: number;
failedOperations: number;
averagePerformance: number;
regressionCount: number;
overallHealth: 'excellent' | 'good' | 'warning' | 'critical';
};
updateBaseline(operationName: string, baselineTime?: number): void;
clearResults(operationName?: string): void;
exportResults(): {
operations: BenchmarkOperation[];
results: {
[operationName: string]: BenchmarkResult[];
};
baselines: {
[operationName: string]: number;
};
summary: {
totalOperations: number;
passedOperations: number;
failedOperations: number;
averagePerformance: number;
regressionCount: number;
overallHealth: 'excellent' | 'good' | 'warning' | 'critical';
};
regressions: RegressionReport[];
};
}
export declare const DEFAULT_BENCHMARK_CONFIG: BenchmarkConfig;
export declare function getPerformanceBenchmarks(): PerformanceBenchmarks | null;
//# sourceMappingURL=performance-benchmarks.d.ts.map