UNPKG

knowledgegraph-mcp

Version:

MCP server for enabling persistent knowledge storage for Claude through a knowledge graph with multiple storage backends

41 lines • 1.67 kB
#!/usr/bin/env node import { BenchmarkRunner } from '../tests/performance/benchmark-runner.js'; /** * Script to run performance benchmarks for the knowledge graph MCP service */ async function main() { console.log('šŸŽÆ Knowledge Graph MCP Performance Benchmarks'); console.log('='.repeat(50)); console.log(''); try { const runner = new BenchmarkRunner(); const report = await runner.runAllBenchmarks(); console.log('\nšŸ“Š Benchmark Summary'); console.log('='.repeat(30)); console.log(`Total Tests: ${report.summary.totalTests}`); console.log(`Overall Performance: ${report.summary.overallPerformance}`); console.log(''); // Display category summaries for (const [category, stats] of Object.entries(report.summary.categories)) { console.log(`${category}:`); if (stats.avgTime > 0) { console.log(` Average Time: ${stats.avgTime.toFixed(2)}ms`); console.log(` Range: ${stats.minTime.toFixed(2)}ms - ${stats.maxTime.toFixed(2)}ms`); } console.log(` Tests: ${stats.testCount}`); console.log(''); } console.log('āœ… All benchmarks completed successfully!'); console.log(`šŸ“„ Detailed report saved in benchmark-reports/ directory`); } catch (error) { console.error('āŒ Benchmark execution failed:', error); process.exit(1); } } // Run the benchmarks if this script is executed directly if (import.meta.url === `file://${process.argv[1]}`) { main().catch(console.error); } export { main }; //# sourceMappingURL=run-benchmarks.js.map