Skip to content

Read editor speed checks from each renderer task's thread time - #1604

Merged
quanvu309 merged 1 commit into
mainfrom
t3/speed-check-drag-thread-time
Nov 24, 2026
Merged

quanvu309 merged 1 commit into
mainfrom
t3/speed-check-drag-thread-time

Conversation

@quanvu309

@quanvu309 quanvu309 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

editor speed
  hold the lock shared with verify-airdesign bench
  wait for fewer runnable tasks than cores before each phase
  read the page renderer's top-level task thread time
    typing counts key tasks, deferred thumbnail work and long tasks
    agent paint counts each task from arrival through the first paint after render
  on a failed speed guard, check samples from its phase
    at or above the core count → speed not measured, with the guard's reading and limit
    below the core count → original guard failure

Evidence

  • The three saved typing failures replay as speed not measured at peaks of 72, 84 and 92 runnable tasks on 48 cores. The replay preserves each guard's reading and limit. A guard that passes with a spike still passes.
  • A 100 ms task between agent arrival and paint failed at 129.2 ms against the 80 ms budget. Counting only the marked tasks in those same five traces reads 29.1 ms.
  • With no injected load, three runs passed and two typing failures reported speed not measured at 79 and 99 runnable tasks on 48 cores. All five runs with 32 background loops passed. Passing runs gave agent-paint readings of 37.6–41.5 ms without injected load and 35.6–61.8 ms with it. The rebased smoke test passed at 37.7 ms.
  • All 23 regression probes tripped their intended guards. The paused-renderer, busy-tab, busy-frame and two-of-five agent-stall controls passed. The browser used one worker and zero retries.
  • 35 targeted unit tests and pnpm gate passed.

Merge Danger

Door: Two-way

Blast Radius: Tests

The speed spec measures the canvas, the filmstrip and agent arrival to paint. The branch changes test and measurement tooling only.

@github-actions github-actions Bot added changes-ci editor Touches the editor: canvas, slides, export and their screens tooling Touches scripts, rules, workflows or repo config labels Nov 24, 2026
@quanvu309
quanvu309 force-pushed the t3/speed-check-drag-thread-time branch 2 times, most recently from 08750dd to 16560f4 Compare November 24, 2026 15:20
@quanvu309 quanvu309 changed the title Measure drag frame and delay in renderer thread time Read editor speed checks from each renderer task's thread time Nov 24, 2026
@quanvu309
quanvu309 force-pushed the t3/speed-check-drag-thread-time branch 3 times, most recently from 134008b to 2cd2053 Compare November 24, 2026 18:57
@github-actions github-actions Bot added the verify Touches the verify-airdesign skills or journeys label Nov 24, 2026
@quanvu309
quanvu309 force-pushed the t3/speed-check-drag-thread-time branch from 2cd2053 to 132e8f3 Compare November 24, 2026 20:40
@quanvu309
quanvu309 merged commit 07dd388 into main Nov 24, 2026
22 of 23 checks passed
@quanvu309
quanvu309 deleted the t3/speed-check-drag-thread-time branch November 24, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes-ci editor Touches the editor: canvas, slides, export and their screens tooling Touches scripts, rules, workflows or repo config verify Touches the verify-airdesign skills or journeys

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant