feat: Add benchmark CLI command for MCP tool timing (closes #63)#67
Conversation
Adds `session-analytics-cli benchmark` to measure response times for all MCP tools against the production database. Calculates median, p95, p99 statistics and flags slow queries (>5s). - Add cmd_benchmark() with 26 tool functions - Add benchmark formatter for table output - Add tests for command and formatter - Update docs to remind adding new tools to benchmark 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds a Issues FoundCriticalNone ImportantNone Suggestions
VerdictREQUEST_CHANGES - Found suggestions for improving error display formatting and documenting percentile calculation limitations with low iteration counts. Automated review by Claude Code |
Address reviewer feedback about p95/p99 needing more iterations for meaningful percentile statistics. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Feedback AddressedImplemented
Skipped
|
Code ReviewSummaryThis PR adds a Previous Feedback StatusBoth suggestions from the previous review have been addressed:
Issues FoundCriticalNone ImportantNone SuggestionsNone VerdictAPPROVE - Code is well-structured, follows project conventions, includes tests, and addresses all requirements from issue #63. Previous feedback has been appropriately addressed. Automated review by Claude Code |
Summary
session-analytics-cli benchmarkcommand to measure response times for all 26 MCP toolsTest plan
session-analytics-cli benchmarkruns successfully against production DBmake checkpasses (format, lint, tests)Output example
🤖 Generated with Claude Code