@dollhousemcp/mcp-server
Version:
DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.
102 lines • 2.67 kB
TypeScript
/**
* Comprehensive Performance Benchmarking Suite for DollhouseMCP Indexing System
*
* Benchmarks:
* - Search response times under various loads
* - Memory usage patterns with large datasets
* - Cache performance and hit rates
* - Concurrent operation performance
* - Index building and rebuilding times
*
* Note: Some metrics are collected but not yet used in reporting.
* These are kept for future dashboard/analytics implementation.
*/
export interface BenchmarkResult {
name: string;
duration: number;
memoryUsage: {
before: number;
after: number;
peak: number;
};
throughput?: number;
cacheStats?: {
hitRate: number;
totalOperations: number;
};
metadata?: any;
}
export interface BenchmarkSuite {
name: string;
results: BenchmarkResult[];
summary: {
totalDuration: number;
averageMemoryUsage: number;
peakMemoryUsage: number;
recommendations: string[];
};
}
export declare class IndexPerformanceBenchmark {
private unifiedIndexManager;
private performanceMonitor;
private benchmarkResults;
private container;
constructor();
/**
* Run comprehensive performance benchmark suite
*/
runFullBenchmarkSuite(): Promise<BenchmarkSuite>;
/**
* Benchmark search performance with various query patterns
*/
private benchmarkSearchPerformance;
/**
* Benchmark memory usage with large result sets
*/
private benchmarkMemoryUsage;
/**
* Benchmark cache performance and hit rates
*/
private benchmarkCachePerformance;
/**
* Benchmark concurrent search operations
*/
private benchmarkConcurrentOperations;
/**
* Benchmark large dataset handling (simulated)
*/
private benchmarkLargeDatasetHandling;
/**
* Benchmark index building performance
*/
private benchmarkIndexBuilding;
/**
* Benchmark streaming search performance
*/
private benchmarkStreamingSearch;
/**
* Benchmark lazy loading performance
*/
private benchmarkLazyLoading;
/**
* Reset benchmark environment
*/
private resetBenchmarkEnvironment;
/**
* Wait for garbage collection to complete
*/
private waitForGC;
/**
* Generate benchmark summary and recommendations
*/
private generateSummary;
/**
* Export benchmark results to JSON
*/
exportResults(suite: BenchmarkSuite): string;
/**
* Generate benchmark report
*/
generateReport(suite: BenchmarkSuite): string;
}
//# sourceMappingURL=IndexPerformanceBenchmark.d.ts.map