Repository navigation
Measure streaming latency after scheduler idle periods - #634
Open
salignatmoandal wants to merge 1 commit into
Open
salignatmoandal wants to merge 1 commit into
salignatmoandal wants to merge 1 commit into
Conversation
The scheduler benchmark keeps issuing requests during each trial. Interactive traffic can pause between bursts, so a continuous trial cannot isolate the first responses after a pause. Add an opt-in pause before each measured burst and issue a fixed number of requests per lane. Begin each pause after preceding streams have drained and record the time to the next burst in the JSONL result. The mode provides repeatable request counts for comparisons after idle periods and preserves the existing continuous trial defaults. Exercised both CLI modes against a local SSE fixture. Checked the request counts, the gap after stream drain, and the continuous-mode output. No native GPU serving benchmark was run. Design-Signed-Off-By: Codex (GPT-6); design-review=2e5b Signed-off-by: Mawen Salignat-Moandal <mwnslgt@gmail.com>
Collaborator
|
A case file has been opened for 634. Future reviews will auto-run 90 minutes after code updates are pushed.
|
Collaborator
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedWell-scoped, low-risk benchmark-script change that leaves default continuous mode behavior-identical, but two small fixes are needed: the implicit
Walkthrough
Merge Risk: Low · up to
|
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.
Why
The scheduler benchmark continuously issues requests during each trial. It cannot isolate streaming behavior when traffic returns after an idle period, a qualification case for the timing credit retained by #540.
What changed
Add an opt-in burst mode to
scripts/benchmark_scheduler.py. With--idle-seconds, the driver waits after previous streams drain, then issues a fixed number of requests per concurrency lane. Each JSONL trial records the observed interval from the start of the pause to the first request, alongside the existing streaming metrics. The continuous mode remains the default.Benefit
Operators can replay the same request bodies and request counts across builds, and compare first-token latency and SSE delivery gaps after a pause.
Evidence
Ran both CLI modes against a local HTTP server emitting complete SSE streams. Two lanes with one request per lane yielded two completed requests per burst. The second burst began at least 100 ms after the preceding streams drained. The continuous control retained its deadline-based output. Python compilation and
git diff --checkpassed. Native GPU serving, scheduler idle transitions, and latency gains were not measured.