Add per-stage summaries to benchmark output#55
Open
tlrmchlsmth wants to merge 3 commits into
Open
Conversation
When running multi-stage benchmarks (sweeps), the JSON summary now includes a `stages` array with per-stage statistics: concurrency, duration, request count, error rate, throughput, TTFT, ITL, and E2E latency percentiles. Each stage's stats are computed by filtering request records to the stage's time window using the existing Compute() function. This enables downstream tooling (pareto charts, regression detection) to analyze performance at each concurrency level without needing to post-process raw JSONL records. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
When --json is set, all slog output is discarded and the human-readable summary banner is skipped. Only the JSON summary is printed to stdout, making it easy to collect results programmatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
Bool flags like --json should be passed as just --json, not --json true. The latter causes cobra to interpret "true" as a positional argument. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.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
stagesarray with per-stage stats: concurrency, duration, request count, error rate, throughput (tok/s), TTFT, ITL, and E2E latency percentilesCompute()functionTest plan
ComputeStagesand empty inputgo test ./...)🤖 Generated with Claude Code