Repository navigation
fix(bench): restore Lynx stage profile smoke - #293
Merged
Merged
Conversation
Huxpro
marked this pull request as ready for review
September 6, 2026 22:09
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
Fixes #255 after #292 landed the pure stage-contract half.
stages/run.mjsagainst the current first-screen profile contract (render/publish/capture/announce) and delete the retired, never-assigned staged-host fieldsapplier walkbucket disappears or the per-reading median unnamed share exceeds 40%The reproduced failure was
profile bundle omitted stage profiling marker firstScreenPrepareMs. That marker existed only in an injected TypeScript interface and was erased; if the preflight were merely relaxed, the analyzer would silently read the missing fields as zero. This change follows the runtime's actual phase markers instead.The local Chromium smoke completed at 1,000 rows. Its control/profile FCP readings (212.8/212.5 ms) are deliberately non-reportable smoke values, not a performance claim. The three-read CPU smoke retained
applier walkat 8.744 ms median and measured a 31.98% median unnamed share under the frozen 40% ceiling.Validation
pnpm format:checkpnpm typecheckpnpm testpnpm --dir benchmarks/lynx-table test:stages(218/218)pnpm ci:workflow:test(111/111)pnpm format:files:checkpnpm typecheck:files(no changed file belongs to a TypeScript project)pnpm syncnode stages/run.mjs --smoke --rows 1000 --fcp-only --allow-busy-host --output-tag issue255-fixednode stages/mts-profile.mjs --rows 1000 --reps 3 --cells octane-profile --allow-busy-host --label issue255-coverage --max-unmatched-share 0.4Risk / follow-ups
The 40% ceiling is an instrument-health gate, not an optimization target. It is intentionally above the 27.6–32.0% local medians observed on current code and below the 41.4% drift from #255. Reportable performance runs remain ungated by this smoke-only option and must retain their full raw evidence.
No changeset: this changes benchmark instrumentation and CI only, not a published package.
Provenance
agent-authored)