Repository navigation
perf(bench): end-to-end overhead harness and Phase 0 gate results - #50
Merged
Merged
Conversation
Record the missed p99 gate without production tuning. Signed-off-by: Shreyansh Sancheti <43677304+shreyanshjain7174@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep scheduled timestamps so queueing and late sends remain visible. Signed-off-by: Shreyansh Sancheti <43677304+shreyanshjain7174@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Oct 18, 2026
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.
Plan
Phase 0 exit gate from the AgentGate scale-out prompt: an end-to-end
handleActbenchmark, a k6 script, and results inbench/RESULTS.md. The target is under 1 ms p99 added overhead, excluding upstream time, on 4 vCPU.Gate status: not met. This PR adds the harness and records honest numbers. It changes no production code.
What changed
bench/end-to-end benchmark (build tagbench). The full real stack runs in-process: SQLite with migrations, HMAC keys, group-commit ledger and signer, cached vault, upstream pool, rate limiter, and a registry pointing at an httptest upstream.GOMAXPROCS=4.bench/k6/act.jsandbench/mockupstream/for an out-of-process run. k6 is not installed here, so k6 numbers are pending.make bench-e2e.Results (Apple M4,
GOMAXPROCS=4emulation, 20,000 requests per row)Full percentiles, throughput, the profile and the remaining rows are in
bench/RESULTS.md.Why this is not a final verdict
F_FULLFSYNCbehavior differ from the Linux 4-vCPU target.Next step, in a follow-up: an out-of-process load generator on Linux with 4 dedicated vCPUs, plus profiling of the tail at 25% load.
Validation
go build ./...: passedgo vet ./...: passedgo test -race ./...: passed. The benchmark is excluded by build tag.