The build of 6 November against 0.5.0, and the single tab's title
On this page
Measured on 2026-11-06 in one session, between 22:24 and 22:41, unattended: the app of 0.5.0's DMG, of commit b8f8103, notarized and stapled, against the app of the build of commit a3e5b0b, 0.5.0-20261106, signed, of just bundle; then that build with the tabs plugin and without it, [plugins.tabs] enabled = false, to tell the cost of a single tab's title, which the plugin draws in the titlebar since that build. The reports are in ab-F3-49, with the session's script, run.sh, its config, analyze.py and its tables, analysis.txt.
Method#
As in 0.5.0's A/B, the config of compare-F2-134, Menlo at 13 points, 120 × 40 cells, an opaque window, of balanced orders: the startup, warm, 10 runs after 2, to the first frame on the display, four rounds, AB BA BA AB, each of the minimal AppKit app of F0 as its floor; the latency of 200 keys, eight rounds, after a warm-up of 20 keys of each bundle; idle over 60 s and memory over 10 s of a bundle started with open -n, 20 s after its start, two rounds; the throughput of the four workloads of onscreen-F2-56 on screen, two rounds of two runs each. Then, of the build of now with the tabs plugin (cur) and without it (notabs): the startup in two rounds, the latency in four, and the frames of a program that sets the window's title 100 times, 20 a second, in two rounds; and the frames of a program that tells its progress, OSC 9;4, 50 times, 10 a second, of a single tab and of a bar shown, hide-when-single = false, two runs each.
Machine#
- Apple M5 Pro, macOS 27.2, on AC power, the main display at 60 Hz, a scale of 2, as in 0.5.0's A/B.
- The load average 1.0 to 2.8 through the session, unattended, of no other work but the system's.
Results#
| Measure | 0.5.0 | Now | Budget |
| Startup, warm, first frame, median of the four rounds | 226.2, 232.3, 233.2 and 230.9 ms | 236.7, 234.2, 239.8 and 233.1 ms | |
| Its gap to the minimal app's first window, their mean | 21.9 ms | 27.2 ms | ≤ 35 ms |
| Latency at 60 Hz, p50, the mean of 8 rounds | 19.03 ms | 21.46 ms | ≤ 2 frames at 120 Hz |
| Latency at 60 Hz, p99, the mean of 8 rounds | 47.82 ms | 35.59 ms | ≤ 4.5 frames at 120 Hz |
| Its samples in the fourth refresh or later, of 1592 | 10 | 0 | |
| Idle, package idle wakeups | 0 and 0/s | 0 and 0/s | 0/s |
| Idle, interrupt wakeups | 0.35 and 0.35/s | 0.33 and 0.35/s | ≤ 0.5/s |
| Footprint without the GPU's, at rest | 25.4 and 25.6 MB | 26.4 and 26.4 MB | ≤ 35 MB |
| GPU memory | 30.0 MB | 30.5 MB | |
cat of 1 GiB of ASCII on screen, median of 4 | 326.8 MiB/s | 318.4 MiB/s | |
seq 1 10000000 | 219.8 MiB/s | 219.8 MiB/s | |
| Colored text, SGR | 286.2 MiB/s | 287.2 MiB/s | |
| CJK and emoji | 216.1 MiB/s | 216.1 MiB/s | |
| A frame on the CPU, CJK and emoji, p50 of each round | 0.452 and 0.443 ms | 0.716 and 0.711 ms | |
| The single tab's title | With the tabs plugin | Without it |
| Startup, warm, first frame, median of the two rounds | 231.9 and 233.9 ms | 217.9 and 214.6 ms |
| Latency, p50, the mean of 4 rounds | 21.48 ms | 18.73 ms |
| Latency, p99, the mean of 4 rounds | 34.88 ms | 51.20 ms |
| Its samples in the fourth refresh or later, of 796 | 0 | 8 |
| Frames of 100 title changes, each round | 102 and 102 | 1 and 1 |
| A frame of those, p50 | 0.555 and 0.571 ms | |
| A program's progress, 50 changes | Frames, each run |
| A single tab, its bar hidden | 2 and 2 |
| A bar shown | 11 and 10 |
- The tabs plugin's title of a single tab costs a refresh at the start and 2.7 ms of the median latency: without the plugin, the build of now starts in 216 ms against 233, a refresh at 60 Hz, and echoes a key in 18.7 ms at the median against 21.5, more of its samples in the first refresh, 79 of 199 against 37. 0.5.0, whose tabs plugin draws nothing of a single tab, starts and echoes as the build of now does without it. The budgets hold, but the title is the cost to tell first, and the first to remove if the speed is lost. A later session found the start's cause and fixed it, and the latency's difference did not repeat: the start's cause and its fix.
- The latency's tail is shorter with the title, p99 35 ms against 47 to 51, of no sample in the fourth refresh, in both comparisons: the frames come at a steadier place in the refresh, which the measures do not explain yet.
- Each title's change draws a frame, 102 frames of 100 changes against one without the plugin, of about 0.56 ms of the CPU each.
- A program's progress draws no frame of its own: of a bar shown, 50 changes draw 10 or 11 frames, the window server sliding the fills, as designed; of a single tab, the progress shows nowhere, as the title shows a ring that stands still, which is to fix.
- A frame of CJK and emoji takes 0.26 ms more on the CPU, at the median, and the frames' p99 of
seq, SGR and CJK about 1 to 3 ms more, of the same throughput; ASCII's throughput is 2.6% lower in all four runs. Not explained yet: a single pane, no fade; the title's view drawn in each frame is the first to look at.
- Idle and memory are 0.5.0's, the footprint 0.9 MB larger.
Which part of the title costs#
Measured on 2026-11-06, between 23:15 and 23:20, of factors.sh and its reports in factors: an experimental build of a3e5b0b, never committed, whose titlebar LOKYR_EXPERIMENT_TITLEBAR forces, in four variants, the latency in four rounds of a Latin square, each variant once at each place, and the startup in two rounds; the load average 1.4 to 2.5.
| Variant | The titlebar | The title's view | Startup, the two rounds | Latency p50, mean of 4 | p99, mean of 4 | Samples in the first refresh, each round | In the fourth or later | A frame's CPU, p50 |
| T0 | the system's | none, no tabs plugin | 220.6 and 217.1 ms | 19.86 ms | 49.51 ms | 72, 59, 51, 60 | 11 | 1.19 ms |
| T1 | of no title | none, no tabs plugin | 218.8 and 216.8 ms | 19.60 ms | 49.92 ms | 58, 59, 74, 69 | 6 | 1.17 ms |
| T2 | the system's, over the view | the title's | 236.3 and 233.2 ms | 21.91 ms | 37.26 ms | 36, 25, 42, 27 | 0 | 1.31 ms |
| T3 | of no title, as shipped | the title's | 236.9 and 235.6 ms | 21.62 ms | 37.35 ms | 42, 40, 40, 43 | 0 | 1.29 ms |
- The titlebar costs nothing: of no title or the system's, the startup and the latency are the same, of the view and without it.
- The view of the title, its plugin with it, costs it all: a refresh at the start, 16 to 18 ms, and 2 ms of the latency's median, its samples in the first refresh half as many, its tail shorter, of none in the fourth refresh; a frame's CPU 0.12 ms longer alone, so that the time goes not in the frame's work but in where the frames come in the refresh, or before the frame. The latency's program is the login shell at its prompt, of no spinner. The next measure takes the frame's steps, the key's, the output's, the frame's request and its present, to find the cause.
The start's cause and its fix, and the latency again#
Measured on 2026-11-07, between 00:56 and 01:06, unattended, of f3-187/fix.sh and f3-187/fixlat.sh, their reports and analysis.txt in f3-187: the build of a3e5b0b (cur) against the build of the fix with the tabs plugin (fix) and without it (fixnotabs), the startup to the first frame and to the window on screen, of lokyr-bench startup, in four rounds of balanced orders, then the latency in four; the load average 1.9 to 7.0, of the system's own work.
| Measure | Before the fix | The fix | The fix, without the tabs plugin |
| Startup, first frame, median of each round | 249.3, 249.0, 247.9 and 236.7 ms | 233.3, 234.0, 234.8 and 233.3 ms | 233.2, 232.1, 241.4 and 236.8 ms |
| Their mean | 245.7 ms | 233.8 ms | 235.8 ms |
| Startup, the window on screen, their mean | 250.2 ms | 227.3 ms | 224.6 ms |
| Latency, p50, the mean of 4 rounds | 24.14 ms | 23.80 ms | 26.65 ms |
| Latency, p99, the mean of 4 rounds | 41.05 ms | 42.16 ms | 72.24 ms |
| Its samples in the fourth refresh or later, of 796 | 1 | 0 | 76 |
- The cause of the start's refresh: the first frame drew the slots' views before it looked at the tab's place, its folder and its program. The window's opening looked at it first, but gave up on a folder that cannot be read, as that of
login, which runs as root, where the frame's own look, after the views, keeps the folder before and takes the program: the tab's label changed within the first frame, after the title's view had drawn it, and the tab-changed of the turn's end had the tabs plugin draw its view again, a frame a refresh after the first, as AppKit made the window show. A frame then delays the window's showing by a refresh: a trace of the frames, of the main thread's run loop and of the window's steps from its makeKeyAndOrderFront found the frames before the window's showing skipped by the display in both builds, the window showing about 50 ms after its order, and the first frame shown 94 ms after it of the title against 79 without, of the same times before it. The window's opening now looks at the place as the frame does, so that the first frame draws the label that stays, and no second frame comes.
- Not the cause, as experimental builds of the trace measured, in balanced orders: the titlebar of no title set before the window shows, the view's areas of the pointer's moves, the interface's face laid out before, the window shown after the frame of the title, which takes as long, its order later by as much, and the first frame drawn at the turn's end, which shows a refresh later of both builds.
- The fix starts as the build without the tabs plugin does, 233.8 ms against 235.8, and its window shows 23 ms sooner than before it, within 3 ms of the build without the plugin.
- The latency's cost did not repeat: of the tabs plugin, before the fix and after it, the median is 24.1 and 23.8 ms, against 26.7 ms without the plugin, which the first session measured 2.7 ms shorter; the tail is shorter with the plugin, as in the first session, p99 41 to 42 ms against 72, of one sample in the fourth refresh or later against 76. The tabs plugin hears no event and asks no frame while the keys are typed, the frames are as many, and a frame's CPU is 0.12 ms longer of the title's view: the medians move between sessions by more than the plugin, and the shorter tail of the title's view is not explained, a gain. The session's latencies are longer than the first session's, every build alike, of its load.
The window's motion#
Measured on 2026-11-06, between 23:21 and 23:38, of motion/run.sh and its reports in motion, its means in tables.md, as motion-F3-152 measures it: each window dragged by its titlebar, then resized by its corner, 10 s each along a sine of 200 points, while Instruments' Animation Hitches recorded every process, of its config, Menlo at 20 points, 88 × 27 cells, opaque of a cursor that switches, and translucent at 0.95 with a blur of 10 and the cursor's fades; two rounds, the second in the reverse order. The traces, too large to keep, gave figures.csv. The load average went from 5.3 to 8.6 as the traces were written.
| Configuration | A drag, frames a second | Missed | Delay p50 | A resize, frames a second | Missed | The window server's CPU | The app's CPU |
| 0.5.0, opaque | 57.3 | 15.0 | 13.6 ms | 55.7 | 37.0 | 33 % | 18 % |
| Now, opaque | 58.8 | 9.0 | 13.7 ms | 55.3 | 42.5 | 34 % | 19 % |
| 0.5.0, a blur | 58.0 | 16.5 | 13.6 ms | 55.6 | 38.5 | 36 % | 18 % |
| Now, a blur | 58.0 | 16.0 | 13.5 ms | 56.0 | 34.5 | 36 % | 17 % |
- The window's drag and its live resize are 0.5.0's, within the differences between two rounds of one bundle: 57 to 59 frames a second of a drag, 55 to 56 of a resize, of the same CPU, the CPUs of the resize's.