Repository navigation
Count the gaps over 250 ms and 500 ms in every bench run (851-4503) - #1512
Merged
pondorasti merged 2 commits intoNov 27, 2026
Merged
pondorasti merged 2 commits into
pondorasti merged 2 commits into
Conversation
…es (851-4503) The freeze counter flags a gap three times the stream's recent average, so a run that stutters throughout barely freezes. Each run with a continuously changing scene now also records `long_gaps`: the number of gaps between shown updates over 250 ms and over 500 ms, and the time spent in them. Both tiers store it, the Tier 1 lab table shows it per run, and the Tier 2 target table shows the medians. The freeze counter is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g gaps (851-4503) Co-Authored-By: Claude Opus 5.5 <[email protected]>
pondorasti
deleted the
alexandru/851-4503-screen-sharing-bench-count-gaps-over-250
branch
November 27, 2026 18:28
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.
Fixes 851-4503
Benchmark-only. The freeze counter flags a gap three times the average of the 30 gaps before it, so its threshold follows the stream's own pace: a run that stutters throughout on a slow link barely freezes. This adds a fixed-threshold count next to it. The freeze counter is unchanged.
What changes
long_gaps: the gaps between shown updates over 250 ms and over 500 ms, each as a count and the total time in them. Pauses over 5 s count too; the freeze counter reports those apart.long_gaps.over250_msandlong_gaps.over500_ms, eachcountandtotal_ms). The report schema stays v1: the field is optional, so older reports still read.12 (4.1 s). The Tier 2 target table adds four columns: the median count and the median seconds over each threshold.The nightly Tier 1 results page (
ResultsMarkdown) is unchanged.Tests
BenchLongGapsTests: the counts and totals above each threshold, and a run of even 400 ms gaps that the freeze counter calls 0 while every gap counts as long.BenchLoopbackAnalysisTests,BenchSharingAnalysisTests).LoopbackSummaryTests,Tier2SystemRowTests).Run locally with timeouts:
ScreenSharingBenchTests97 andCodevisorBenchTests60 passed, plusswift:format:checkandswift:lint.Code review
Five findings: three fixed, two left.
Fixed:
Left:
🤖 Generated with Claude Code