Repository navigation
feat(M84): Endpoint Response Time Regression Detection - #182
Merged
Merged
Conversation
- latency_regression.py: Welch's t-test, Cohen's d, percentile comparison - CLI: xpyd-acc latency-regression --old/--new/--alpha/--json - Exit 0 if no regression, exit 1 if significant slowdown - Rich terminal output with latency table and verdict - 26 tests covering statistics, integration, formatting, CLI
hlin99-Review-Bot
approved these changes
Apr 6, 2026
hlin99-Review-Bot
left a comment
There was a problem hiding this comment.
✅ LGTM. Clean Welch's t-test implementation with proper edge-case handling (small samples, zero variance). Good percentile reporting (p50/p95/p99). Tests are comprehensive — unit + integration + CLI. CI all green. current.md updated. Ship it.
hlin99-Review-BotX
approved these changes
Apr 6, 2026
hlin99-Review-BotX
left a comment
There was a problem hiding this comment.
✅ Clean Welch's t-test implementation with proper continued-fraction p-value approximation. Good edge-case handling (n<2, zero variance). Percentile reporting (p50/p95/p99), Cohen's d effect size, and CLI integration all solid. 268 lines of tests covering unit + integration + CLI. CI green. current.md updated. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
xpyd-acc latency-regressionsubcommand that compares two benchmark JSON reports for statistically significant latency changes.Features
latency_regression.pymodule: Welch's t-test, Cohen's d effect size, percentile comparisonxpyd-acc latency-regression --old <path> --new <path> --alpha <float> --json <path>Tests
26 tests covering Welch's t-test, Cohen's d, percentile computation, integration, formatting, JSON export, CLI integration.
Closes #181