Skip to content

perf(pgo): the Windows profile trained on the tree of the Rune pin 5342f14d - #1276

Merged
Hona merged 5 commits into
devfrom
perf/trained-on-5342f14d
Nov 25, 2026
Merged

Hona merged 5 commits into
devfrom
perf/trained-on-5342f14d

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Follows #1257 (the Rune pin 5342f14d1, now merged on dev), beside #1271. Its own change is four files under apps/desktop/pgo. Merge only one of this PR and #1271. dev (a5c55ecf42) is merged in at this PR's head 6440ab796b: the tree is dev, the pin and this profile. #1271's head holds the same tree but for the Windows profile's two files.

What it does

The training

Each chunk starts the instrumented app several times and every process writes its own counts.

Chunk What it runs Processes
frames-4 the regression watch's frame actions, headless: scroll-long, type, tabs, focus, turn, turn-scroll 6
launch-first launches: first 6
launch-small launches: small 7
launch-big launches: big 7
launch-update launches: new-build, cold 6
frames-1 a real window: demo, type-quiet, type-long, hover-tabs, palette 5
frames-2 a real window: wheel-step, pan, tab-switch, tab-drag, tab-press, side-panel, menu, popover 8
frames-3 a real window: resize, type-empty, streaming, hover-rows, sidebar-drag, home, settings, german 8
  • 53 processes in all, 26 of them launches, weighed 1. No process wrote an empty file.
  • The merged profile holds counts for 18,689 functions (the profile it replaces: 17,961; the re-key in chore(pgo): the profiles re-keyed to Rune 5342f14d's symbol names #1271: 17,804).
  • The counts were merged with the Rust toolchain's own llvm-profdata (1.99.1) on the development machine that ran the training. Nothing was compiled there: the instrumented build is CI's.
  • The instrumented build's tree is f8878eddda (this PR's base before dev was merged in) but for one README under apps/desktop/pgo.

Checks: in

  • The training itself: all eight chunks end with exit code 0 and the merge ends with exit code 0.
  • This PR's build on the head with dev merged in (6440ab796b): guardrails, macOS, Windows x64 and arm64, and Linux x64 are green. A PR build does not build Linux arm64: that job shows success and is a skip.
  • Starts of this PR's Windows x64 build (6440ab796b): three starts (the plugins, a session's timeline, the launcher) end with exit code 0 and no crash dump (25.2 s); the first frame holds 353 elements, 17 plugins load, a session's timeline draws 207 message elements and a prompt is accepted. Two tabs and the selection are the same after a close by the close button and a restart (closes 620 ms and 112 ms), and the window has its icon (128 px and 32 px). The full set of twelve checks was not run on this build.
  • Everyday launch on Windows x64, files in memory, homes warmed with a warm start per launch, 52 paired launches of this PR's build (6440ab796b) against 0.0.0-dev-490 (two series of 26 pairs each; 52 of 52 timed launches matched to their own marks in each series; Direct3D shader cache present in 52 of 52 of each series; 114 of 114 warm-up starts and 2 additional starts of 6440ab796b end with exit code 0). On window.created -> frame.first.presented, 6440ab796b is faster than 0.0.0-dev-490 (7.15 ms -> 6.60 ms, paired median -0.55 ms, -7.7%, later in 18 of 52, sooner in 34, sign p 0.036):
Interval (app clock, 52 pairs) 0.0.0-dev-490 6440ab796b Paired median New later in Sooner in Sign p
process start -> main.entered 12.05 ms 12.46 ms -0.15 ms 24 of 52 28 0.678
main.entered -> window.created 14.42 ms 14.06 ms -0.40 ms 21 of 52 31 0.212
window.created -> frame.first.presented 7.15 ms 6.60 ms -0.55 ms 18 of 52 34 0.036
main.entered -> frame.first.presented 21.60 ms 20.72 ms -0.70 ms 22 of 52 30 0.332
first frame (from start) 34.06 ms 33.54 ms -0.20 ms 24 of 52 28 0.678
content live (from start) 48.45 ms 46.89 ms -0.72 ms 23 of 52 29 0.488
  • Series 1 (26 pairs): first frame 35.4 -> 33.9 ms (paired -0.2, later in 12 of 26), content live 50.3 -> 47.2 (-0.6, 11 of 26), main.entered -> first frame 21.5 -> 20.7 (-1.0, 9 of 26); late starts over 100 ms: 4 vs 6 (spawn medians 3.6 vs 4.1 ms, max 258.4 vs 332.7 ms).
  • Series 2 (26 pairs): first frame 33.7 -> 33.2 ms (paired -0.3, later in 12 of 26), content live 47.6 -> 46.1 (-0.7, 12 of 26), main.entered -> first frame 21.8 -> 21.1 (-0.1, 13 of 26); late starts over 100 ms: 2 vs 2 (spawn medians 3.5 vs 3.6 ms, max 293.3 vs 377.7 ms).
  • Pin regression read on Windows x64: dev at fix(deps): pin rune to 5342f14d (93 commits): window buttons on Wayland without server decorations, smaller backdrop blur copies #1257's base (fcdcff53de, chore(perf): dev 984f922544 as it is, the before side of the Rune 5342f14d pin (never merge) #1256) against this PR's build (6440ab796b, Rune 5342f14d1 + trained Windows profile): no regression in either form measured.
    • Everyday launch (files in memory, homes warmed with a warm start per launch, 26 paired launches): no change (memory-low: free commit dipped to 6.96 GiB in one of three runs, 0.04 GiB under the 7.0 GiB mark; the other two stayed at 7.27 and 7.23 GiB). 52 of 52 timed launches matched to their own marks; Direct3D shader cache present in 52 of 52; 58 of 58 warm-up starts and 2 additional starts of fcdcff53de exit code 0; late starts over 100 ms: 5 vs 5 (spawn medians 3.8 vs 3.6 ms, max 766.8 vs 373.2 ms). On window.created -> frame.first.presented, 6440ab796b is faster (7.63 -> 6.94 ms, paired -0.63 ms, later in 6 of 26, sooner in 20, sign p 0.009):
Interval (everyday launch, 26 pairs) fcdcff53de 6440ab796b Paired median New later in Sooner in Sign p
first frame (from start) 34.91 ms 34.32 ms -1.74 ms 11 of 26 15 0.557
content live (from start) 49.84 ms 49.31 ms -1.89 ms 12 of 26 14 0.845
process start -> main.entered 12.64 ms 12.28 ms -0.29 ms 12 of 26 14 0.845
main.entered -> window.created 14.07 ms 14.90 ms -0.14 ms 13 of 26 13 1.000
window.created -> frame.first.presented 7.63 ms 6.94 ms -0.63 ms 6 of 26 20 0.009
main.entered -> frame.first.presented 22.14 ms 21.90 ms -0.96 ms 11 of 26 15 0.557
  • Never-started launch (un-warmed fresh homes, fcdcff53de's profile, 16 paired launches): no change (valid: free commit lows 7.76 and 7.63 GiB). 32 of 32 timed launches matched (un-warmed: pixels.stable under 600 ms in 0 of 32); late starts over 100 ms: 3 vs 1 (spawn medians 8.6 vs 7.7 ms, max 329.6 vs 329.5 ms):
Interval (never-started, 16 pairs) fcdcff53de 6440ab796b Paired median New later in Sooner in Sign p
first frame (from start) 84.91 ms 85.22 ms -2.42 ms 7 of 16 9 0.804
content live (from start) 100.23 ms 101.11 ms -2.24 ms 7 of 16 9 0.804
process start -> main.entered 28.86 ms 29.10 ms -1.69 ms 5 of 16 11 0.210
main.entered -> window.created 46.41 ms 48.00 ms +0.14 ms 8 of 16 8 1.000
window.created -> frame.first.presented 9.35 ms 10.04 ms +0.58 ms 10 of 16 6 0.454
main.entered -> frame.first.presented 56.21 ms 58.76 ms -0.37 ms 7 of 16 9 0.804

Checks: not in yet

Not covered

@Hona
Hona marked this pull request as ready for review November 25, 2026 22:55
@Hona
Hona merged commit 3b60fee into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the perf/trained-on-5342f14d branch November 25, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant