Lokyr
Documentation

Lokyr against the other terminals

On this page

Measured on 2026-10-31, in five sessions between 14:54 and 22:30, on the bundle of commit 920028a, with the change of lokyr --bench output made for this comparison, which takes the config's columns and rows without --window and through which compare.py runs each measure's program in Lokyr, against Ghostty, Alacritty, kitty, WezTerm, iTerm2 and Terminal.app, under the same conditions. The raw results, the configs and each terminal's reports are in compare-F2-134/; python3 tools/bench/compare.py takes the measures again, and python3 tools/bench/report_charts.py compare draws the charts from the raw results. The measures made by hand came on 2026-11-01, on the bundle of commit 26f0ac9, after the fix of vtebench's top region: the latency with Typometer, powermetrics, the smoothness by eye and vttest's screens.

Lokyr alone was measured again on 2026-11-08, of the build of 8 November, of this tool and these conditions, compare-F3-72, whose figures the README's charts show beside the other terminals' of this report, which are not measured again of the same versions.

In short

MeasureLokyrIts place of 7The best of the others
Startup to the first window, median256 ms1stGhostty, 331 ms
Memory at rest, without the GPU's25.0 MB1stAlacritty, 31.3 MB
Interrupt wakeups at rest0.38 a second2nd, with Terminal.appAlacritty, 0.37
cat of 1 GiB on screen296 MiB/s2ndGhostty, 306 MiB/s
The CPU's energy to show that GiB17.3 J1stkitty, 41.1 J
kitty's benchmark, short CSI sequences58 MB/s4thGhostty, 221 MB/s
A key to its echo at 120 Hz, median, of 521.2 ms1stiTerm2, 21.3 ms
A key to its echo at 120 Hz, p99, of 532.2 ms3rdAlacritty, 25.8 ms
A key to its echo at 60 Hz, median, of 522.8 ms2ndAlacritty, 21.2 ms

Startup to the first window, median of 10 runs: Lokyr 256 ms, Ghostty 331, Terminal.app 340, Alacritty 349, WezTerm 394, kitty 672, iTerm2 794

Memory at rest without the GPU's: Lokyr 25.0 MB, Alacritty 31.3, Terminal.app 34.8, WezTerm 37.2, Ghostty 40.0, kitty 97.3, iTerm2 136.5

Interrupt wakeups a second at rest: Alacritty 0.37, Lokyr 0.38, Terminal.app 0.38, WezTerm 1.35, iTerm2 8.18, Ghostty 16.57, kitty 20.08

Throughput of cat of 1 GiB on screen, median of 5 runs: Ghostty 306 MiB/s, Lokyr 296, Alacritty 170, kitty 147, iTerm2 51, WezTerm 45, Terminal.app 40

The CPU's energy to show cat of 1 GiB: Lokyr 17.3 J, kitty 41.1, Alacritty 41.9, Ghostty 43.1, iTerm2 107.9, Terminal.app 124.3, WezTerm 196.3

Latency at 120 Hz, a key to its echo on screen with Typometer, median and 99th percentile: Alacritty 21.6 and 25.8 ms, kitty 21.8 and 29.6, Lokyr 21.2 and 32.2, iTerm2 21.3 and 45.0, Ghostty 24.8 and 47.7

Latency at 60 Hz, a key to its echo on screen with Typometer, median and 99th percentile: Alacritty 21.2 and 47.9 ms, Lokyr 22.8 and 50.3, kitty 32.0 and 50.5, iTerm2 35.8 and 50.6, Ghostty 33.1 and 64.7

Conditions

TerminalVersion
Lokyr920028a
Ghostty1.3.2-main+62fa23bfa, a build of its tip
Alacritty0.18.0-dev, bbb2cbf of 26 October 2026, built here
kitty0.49.2
WezTerm20240203-110809-5046fc22
iTerm23.7.6
Terminal.app2.15 (488.9)

Startup

lokyr-bench startup, which launches each terminal through LaunchServices and times its first window on screen from the process's start, a run to warm up and five, twice, the other terminals' order turned between the rounds, while Lokyr came first in both, as a review found; and Lokyr's own first frame, as its presented handler tells it. The spread is the range from the 10th to the 90th percentile, as a fraction of the median, by lokyr-bench's ranks, the 2nd and the 9th of ten runs; python3 tools/bench/compare_tables.py makes this table and the others of their raw results.

TerminalMedianp90SpreadFastestSlowest
Lokyr256.2 ms258.20.10211.9278.3
Ghostty330.6 ms342.30.12283.4361.9
Terminal.app339.6 ms375.00.15319.8397.5
Alacritty349.0 ms368.50.13310.6369.7
WezTerm394.3 ms415.90.16341.7422.1
kitty671.7 ms681.60.03659.2696.1
iTerm2794.2 ms1 203.00.64695.01 250.7

Lokyr's first frame, as its presented handler tells it, in runs of its own, came at 235.1 ms at the median, p90 253.8, a spread of 0.14.

At rest

Each terminal alone, 10 s after its start, then 60 s of lokyr-bench idle and of its energy, then its memory, over the processes of its bundle, without the shell.

TerminalProcessesPackage idle wakeupsInterrupt wakeupsFootprint without the GPU'sThe GPU'sEnergy
Lokyrlokyr0 a second0.3825.0 MB30.5 MB0.07 mW
Ghosttyghostty0.0516.5740.0 MB130.7 MB0.52 mW
Alacrittyalacritty00.3731.3 MB52.1 MB0.07 mW
kittykitty, two kittens020.0897.3 MB41.9 MB0.15 mW
WezTermwezterm-gui01.3537.2 MB56.9 MB0.09 mW
iTerm2iTerm2 and pidinfo; and the session's server, in its footprint alone0.028.18136.5 MB184.4 MB5.45 mW
Terminal.appTerminal00.3834.8 MB15.2 MB0.07 mW

Throughput

In each terminal's window, one after the other: kitty's kitten __benchmark__, three times without its --render and three times with it; vtebench, at commit ead8003, five seconds a scenario; and cat of 1 GiB of lines of ASCII, ended with a query of the cursor, five times. Lokyr's own measures, of other workloads, come with these.

kitty's benchmark

Without --render, MB/s, the median of 3 runs; more is better:

TerminalASCIIUnicodeUnique clusters of several codepointsShort CSI sequencesLong escape sequencesImages
Lokyr3142987558317317
Ghostty316320104221320320
Alacritty1171388194232240
kitty17316657114273248
WezTerm39759522286257
Terminal.app304122325949

vtebench

The median time of a scenario's samples, in milliseconds; less is better. vtebench's time ends as the PTY takes the bytes, not as the terminal shows them, in whole milliseconds:

ScenarioLokyrGhosttyAlacrittykittyWezTermiTerm2Terminal.app
dense_cells4558812425
medium_cells44673338143
scrolling81219646728146
scrolling_bottom_region913103763548124
scrolling_bottom_small_region913103763546124
scrolling_fullscreen916361567837148
scrolling_top_region14122926812 710123
scrolling_top_small_region913103662546124
sync_medium_cells449144636144
unicode3367203459

cat of 1 GiB

TerminalMedianIts 5 runs
Ghostty305.6 MiB/s300.3 to 307.8
Lokyr295.5 MiB/s290.1 to 296.4
Alacritty169.6 MiB/s169.0 to 170.8
kitty146.7 MiB/s145.7 to 148.3
iTerm251.0 MiB/s50.1 to 51.1
WezTerm44.6 MiB/s44.2 to 44.7
Terminal.app39.9 MiB/s39.8 to 40.1

Lokyr is at 0.97 of Ghostty's rate, within the budget.

A session that slowed Lokyr

The first session of throughput, at 15:28, ran Lokyr first. Its first run of kitty's benchmark matched the figures above; from the second on, every test fell by a third or more, ASCII to 211 MB/s, short CSI sequences to 26, vtebench's scenarios took three to five times as long, and cat ran at 62 MiB/s. Lokyr used the same CPU throughout, about 1.1 to 1.3 cores, as powermetrics saw. No state of the terminal explained it: neither vtebench, the alternate screen, each of the benchmark's tests in turn, two whole runs of it, nor the app hidden or in the background slowed it again. A fourth session measured Lokyr again, with Ghostty as the control, whose figures matched the first session's within 2%; the tables above are that session's, and the first one's are in throughput/lokyr-disturbed/.

Latency

Typometer, built from its maintained fork, typed 200 keys into each terminal, which ran cat > /dev/null, so that the terminal's echo of each key was the line discipline's, and timed each from its key to the change of the window's pixels that it reads from the screen: alone, and with a second window of the same terminal beside it, flooded by yes. At 60 Hz on the main display, and at 120 Hz on the MacBook's own, through ProMotion; WezTerm and Terminal.app were not measured. The raw results are in latency/. The median, the 90th and the 99th percentiles, by the nearest rank, in milliseconds; less is better:

Terminal60 Hz, medianp90p99120 Hz, medianp90p99
Lokyr22.8 ms49.150.321.2 ms25.232.2
Ghostty33.1 ms50.064.724.8 ms41.947.7
Alacritty21.2 ms29.447.921.6 ms23.825.8
kitty32.0 ms48.350.521.8 ms24.129.6
iTerm235.8 ms47.950.621.3 ms40.645.0
Terminal, next to a flood60 Hz, medianp90p99120 Hz, medianp90p99
Lokyr19.9 ms34.043.216.7 ms20.124.3
Ghostty32.3 ms40.843.821.0 ms28.834.1
Alacritty16.1 ms26.538.516.2 ms18.520.8
kitty16.5 ms28.637.516.3 ms19.021.9
iTerm216.5 ms29.340.618.2 ms35.640.4

Energy

lokyr-bench energy, which reads the energy that the kernel bills each process, ri_energy_nj of proc_pid_rusage, and needs no administrator, over cat of 1 GiB in each terminal, all of them in one session: the same bytes in each, whatever its rate. The kernel bills the CPU's energy alone: four seconds of a Metal loop that keeps the GPU busy add 0.02 J to a process's count, where a second of the CPU's work adds about 6 J, as a review measured. The figures leave out each terminal's own drawing on the GPU.

TerminalA GiBAt
Lokyr17.3 J298.5 MiB/s
kitty41.1 J145.3 MiB/s
Alacritty41.9 J168.8 MiB/s
Ghostty43.1 J300.2 MiB/s
iTerm2107.9 J102.8 MiB/s
Terminal.app124.3 J38.7 MiB/s
WezTerm196.3 J44.0 MiB/s

powermetrics

powermetrics, which needs the administrator, was recorded by hand in samples of about a second, of the tasks and of the CPU's and the GPU's power, while a script opened each terminal in turn, in the order of the tables, each running 15 s at rest, then cat of 256 MiB of the same lines of ASCII, then 3 s, before it closed and the next one opened 5 s later. powermetrics/ holds the figures that the report reads, which python3 tools/bench/powermetrics_extract.py takes out of the recording, and the times of the script's phases; compare_tables.py makes the tables.

At rest, the median of the samples from 5 s after each terminal's shell started to its cat, about ten. powermetrics stamps a sample at its end, which the figures take, as of the fix of the review at F2's end; they had taken the stamps for the samples' starts, a second off:

Terminal, at restIts CPUIts interrupt wakeupsIts energy impactThe window server's CPUThe GPU's power
Lokyr0.5 ms/s2.4 a second0.10276.2 ms/s, not Lokyr's, below16 mW
Ghostty4.6 ms/s16.0 a second0.5719.7 ms/s5 mW
Alacritty0.7 ms/s0.5 a second0.087.1 ms/s0 mW
kitty0.5 ms/s0.9 a second0.079.5 ms/s0 mW
WezTerm0.2 ms/s1.9 a second0.04307.9 ms/s406 mW
iTerm216.1 ms/s7.5 a second3.6422.9 ms/s4 mW
Terminal.app0.7 ms/s0.9 a second0.0815.3 ms/s1 mW

Under cat of 256 MiB, the sums over the whole samples that overlap its start to 2 s past its end, as a sample's rates are its whole length's, whatever part of it the cat took; the window server's and the GPU's past their rest's median, over those samples' length:

Terminal, cat of 256 MiBIts timeIts CPUIts energy impact, over the secondsThe window server's CPU, past its restThe GPU's energy, past its rest
Lokyr0.89 s1 006 ms4 333—≤ 98 mJ
Ghostty0.88 s1 816 ms10 296269 ms101 mJ
Alacritty1.68 s2 010 ms11 376365 ms162 mJ
kitty1.77 s2 098 ms10 138264 ms210 mJ
WezTerm5.51 s6 529 ms49 787220 ms1 920 mJ
iTerm22.54 s5 199 ms27 486218 ms136 mJ
Terminal.app7.09 s7 410 ms32 6154 ms2 mJ

The window server and the cursor's fades

The window server's CPU, in a core's percent, by top every 2 s, as a Lokyr window of commit 26f0ac9 was in front, at rest at its prompt, 4 to 16 s after its start, the mean of the samples while the cursor blinked; the configs and every sample are in window-server/top.json. top's percent counts otherwise than powermetrics' milliseconds a second: the two do not compare.

The window in frontOpaquebackground-opacity = 0.9, background-blur = 10
None of Lokyr's9.2%
Lokyr, a steady cursor9.1%8.7%
Lokyr, a steady cursor, in lokyr --bench output, as in the session9.9%
Lokyr, a cursor switched on and off, the default10.0%10.0%
Lokyr, a cursor that fades, of the machine's own config: 600 ms of fades in a cycle of 1.2 s28.8%30.8%

Unicode

ucs-detect 2.3.8, of Unicode 18, in each terminal: the share of the sequences of each kind that the terminal draws as wide as wcwidth 0.9.4 measures them.

TerminalWideEmoji ZWJVS16VS15NarrowFlagsA lone regional indicatorLanguages, all rightTheir clusters
Lokyr94.9%100%100%100%100%100%0%57 of 8543.9% of 6 589
Ghostty99.8%100%100%100%99.9%100%100%83 of 8599.5% of 6 589
Alacritty94.9%0.7%50.0%0%99.6%100%0%63 of 8584.4% of 6 589
kitty100%100%97.9%100%99.6%100%100%60 of 8518.6% of 3 788
WezTerm54.9%100%50.0%0%99.7%100%0%61 of 8553.7% of 2 175
iTerm299.8%100%100%0%100%100%100%74 of 8576.6% of 474
Terminal.app94.9%0%50.0%0%98.3%98.9%0%62 of 8581.0% of 6 589

vttest and esctest

vttest's menus 1, of the cursor's movements, 2, of the screen's features, and 8, of the VT102's insertion and deletion, were gone through by hand in each terminal, at 120 by 40 cells, and each rated from 1 to 5:

Terminal1, cursor movements2, screen features8, insertion and deletion
Lokyr455
Ghostty445
Alacritty445
kitty345
iTerm2335

Frame pacing

The HUD's log, MTL_HUD_ENABLED and MTL_HUD_LOG_ENABLED, over 10 s of yes, gave nothing comparable: only Lokyr and iTerm2 logged, their fields private but three numbers, which Apple does not document; and iTerm2 crashed in the HUD's own code, -[HUDMTLLayerTracking safeAreaInsets], twice. The frames' pacing needs another tool: a counter of a window's frames through ScreenCaptureKit, or Instruments.

By eye, no difference showed between the terminals as each scrolled lines that came at a steady 60 a second.

What this leaves