Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sylvestre
force-pushed
the
pr/e2e-bench
branch
2 times, most recently
from
November 8, 2026 10:49
f28ff07 to
c553fcd
Compare
The CodSpeed benchmarks count instructions in process, which misses what only shows across processes: client-side mode detecting the compiler in every invocation, or a cache write waiting 40ms on a delayed ACK. Both made client-side mode slower than server mode without any benchmark noticing. Build a reduced FFmpeg (309 translation units) through the sccache of a pull request and the one of the branch it targets, in server and client- side mode, with a cold and a warm cache. Fail on what is deterministic: a build that fails or hangs, a warm build that does not hit everything the cold build compiled, a cache write error, or server and client-side mode counting differently. Comparing the warm hits to what was compiled, not only checking for misses, matters: a client whose connection breaks loses its stats, and with them the misses that would show the entry was never stored. --large-entries also checks that client-side mode caches entries over a small frame limit; main does not yet, so CI leaves it off. Report the times in the job summary, and fail only on a median regressing by more than 30%, since shared runners are noisy. scripts/e2e-bench.sh runs locally too.
sylvestre
force-pushed
the
pr/e2e-bench
branch
from
November 8, 2026 11:30
c553fcd to
cd9c499
Compare
sylvestre
marked this pull request as ready for review
November 20, 2026 13:15
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.
The CodSpeed benchmarks count instructions in process, which misses what only shows across processes. Two examples found while benchmarking client-side mode on Firefox: the compiler being detected again in every client-side invocation, and each cache write waiting 40ms on a delayed ACK. Both made client-side mode slower than server mode without any benchmark noticing.
This adds
scripts/e2e-bench.shand a workflow that builds a reduced FFmpeg (309 translation units) through the sccache of the pull request and through the one of the branch it targets, in server and client-side mode, with a cold and a warm cache, alternating the binaries.It fails on what is deterministic: a build that fails or hangs, a warm build that does not hit everything the cold build compiled, a cache write error, or server and client-side mode counting differently. Comparing the warm hits to what was compiled matters: a client whose connection breaks loses its stats, and with them the misses that would show an entry was never stored. With
--large-entriesit also checks that client-side mode caches entries over a 256KiB frame limit; main loses 3 of 309 entries there (#3003 fixes it), so the workflow leaves it off for now. It reports the times in the job summary and fails only when a median regresses by more than 30%, since shared runners are noisy. About 6 minutes of builds on a GitHub runner, 21 minutes with building the two sccache binaries. The script also runs locally.Run against main and the client-side fixes (
-j4): client-side / server is 1.33 cold and 4.35 warm on main, 1.01 and 1.14 with the fixes.