Conversation
Implements US-710: benchmark harness that measures per-request HTTP metrics (latency, DNS time, DB proxy time, response size) across WarpGrid test apps T1–T5, with p50/p95/p99 percentile breakdowns. New files: - test-infra/bench-harness/bench-harness.sh — main harness (sequential + concurrent requests) - test-infra/bench-harness/bench-harness.test.sh — 63 TDD tests - test-infra/bench-harness/lib/percentile.sh — percentile computation library - scripts/compare-perf.sh — regression detection (>20% p95 triggers warning) Quality gate: shim overhead < 10% vs direct connection. All arithmetic uses awk (no bc dependency). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add 3 tests covering critical paths not previously exercised: - Quality gate boundary at 9.9% (just below 10% threshold) - Unknown CLI option rejection (exit code 1) - compare-perf.sh invalid JSON detection (exit code 2) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Implements US-710: Cross-domain performance baseline (#94).
test-infra/bench-harness/bench-harness.sh) — sends 100 sequential + 100 concurrent HTTP requests per test app (T1–T5), collects per-request metrics viacurl -w(latency, DNS, DB proxy time, response size), computes p50/p95/p99 percentile breakdowns, and outputs structured JSON totest-results/performance-baseline.jsontest-infra/bench-harness/lib/percentile.sh) — nearest-rank percentile computation and stats aggregation using pure bash + awkscripts/compare-perf.sh) — diffs two baseline JSON files, outputs formatted comparison table, exits with warning on >20% p95 regression (configurable via--threshold)Test plan
bench-harness.test.shCloses #94
🤖 Generated with Claude Code