Selection bench: main-thread stall p95 13 ms over its 8 ms budget on macOS (never held there)

Offen
#452 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@mvilacad arbeitet bereits daran.

Seit 19.11.2026.

  • #617 von @mvilacad — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
macos, rust, tauri
Bereich
desktop, performance

Rechercherichtung

Start by reading scripts/selection-bench.ts and run bun scripts/selection-bench.ts on the release Mac to reproduce the stall and inspect its measurements. The issue points to time after the synchronous flush, including WebKit style, layout, and paint, but does not identify the code responsible. Done means reducing p95 stall below 8 ms or setting a budget from a measured release Mac baseline; desktop UI work is owned outside the crew per #348.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: desktop os: macos type: bug

Selection bench: main-thread stall p95 is over its 8 ms budget on macOS (and was at the commit that set it)

Found in the macOS release checks for 1.5.0-alpha.26 (bun scripts/selection-bench.ts, agent instance, 13 fixture repos, 40 rounds, idle machine: load ~2.5 on 12 cores).

stall p95 flush p95 nodes p95
budget (selectionBench.ts) 8 ms 8 ms 120
bba68598 (2026-10-13, the commit that set the budget) 11 ms — —
main c48f7dc9 (3 runs) 13 / 13 / 14 ms 5 ms 22

So this is not a new regression: the stall budget never held on this Mac (M4 Pro, macOS 27.2). It drifted ~2-3 ms in a month while flush (4→5 ms) and nodes (84→22) improved. Flicker sweep on the same build: 19 surfaces, 0 blips, 0 blank, 0 ghost frames.

To decide: find what fills the ~13 ms gap after the flush (the stall is measured by a MessageChannel ping-pong, so it includes WebKit style/layout/paint after the synchronous flush, paintMs p95 is 38 ms) and bring it under 8 ms, or set the budget from a measured baseline on the release Mac. Desktop UI area (Linux agent owns apps/desktop outside crew per #348), filed for triage; not a .26 blocker.

Vorherrschende Sprache
Rust
Sterne
3
Forks
1
Ø Merge
9 Std. 51 Min.
Gemergte PRs (30 T.)
310

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codeatlasdev/atlas

Alle Issues in codeatlasdev/atlas

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.