Lokyr
Documentation

The startup's gap, beside a floor app

Measured on 25 November 2026, from 14:01 to 14:10, from a terminal with VS Code closed. The releases' startup gap compared Lokyr's first frame, which Lokyr tells itself, with a minimal app's window, which a poll finds. An earlier session found that gap moving by 23 ms within one session, of no change to the copies, as the two figures are not taken alike. ttybench now launches a floor app beside each round: the least app of AppKit that shows a window, launched as the terminal is and timed alike. This session measures 1.5.0 with both tools, one after the other, so that the releases' gap moves to ttybench's figure. Its script, run.sh, its analysis, analyze.py, the results and the tables are in startup-TB-23.

Method

The copy was 1.5.0's app of its release's DMG, notarized and stapled, the copy of the earlier session, started many times before. It used the sessions' base config: Menlo at 13 points, 120 × 40 cells, smooth scrolling and Blocks off.

The Mac was an Apple M5 Pro on AC power, the display a Dell U3417W at 60 Hz. The load average was 1.9 at the start and 3.1 to 5.3 while lokyr-bench ran, so the Mac was not at rest; both tools ran in the same conditions.

Results

ToolLokyrThe floorThe gap
ttybench, the median of 32 rounds330.6 ms259.8 ms70.4 ms, 67.1 to 75.4
lokyr-bench, the mean of six rounds' medians243.3 ± 12.3 ms198.5 ± 23.3 ms44.8 ± 15.9 ms

The interval of ttybench's gap is the 95 % interval of its median.

The releases' budget

From 1.6.0 on, the releases' startup gap is ttybench's window_gap_ms, the median of the A/B's first step, ab/1-start, which now launches the floor beside each round. Its budget is 70 ms. 1.5.0's 70.4 ms here is 0.4 ms past it, a figure for later releases to bring down. The gap to the minimal app's first window stays in the releases' table up to 1.5.0, as its history.