Lokyr
Documentation

CPU per frame and throughput on screen

On this page

Measured on 2026-10-31, on the bundle of the commit after ac69d5f, against the budgets: a frame's time on the CPU, p99 ≤ 2 ms at 4K, and the throughput within 10% of the faster of Ghostty and Alacritty, but for the exception of the bottom region. The raw results, one line a run, and each terminal's config are in onscreen-F2-56/.

Method

Machine and versions

Throughput

The median of three runs, in MiB/s:

WorkloadLokyrGhosttyAlacrittykittyiTerm2
ascii.txt, 1 GiB117.8301.4168.1107.5105.8
seq.txt117.3171.584.418.786.2
sgr.txt138.4252.7150.5none26.7
cjk.txt112.7175.6150.6113.68.1

A frame's time on the CPU

Lokyr's frames as each workload's output draws, in ms, at 3840 × 2224 pixels: the frames of the three runs, the runs' median of each percentile, and the largest p99 and longest frame:

WorkloadFramesp50p90p99LongestThe p99's largest phase
ascii.txt13170.240.270.382.74the layout, 0.26
seq.txt1160.240.281.951.95the layout, 1.50
sgr.txt1570.440.575.475.47the layout, 4.80
cjk.txt1930.290.4818.7518.75the layout, 18.26

Where the throughput goes

sample of Lokyr as cat writes ascii.txt, over 3 s: the session's reader waits in poll 72% of the time, reads 18%, and parses 9%. The parser waits for the bytes, as each piece of the output goes through the PTY's small buffer, a poll, a read and a wake of cat each: the core is not what holds the throughput, which Ghostty reaches at 330 MiB/s through the same PTY.

The gaps

After the output's way from the PTY

Measured on 2026-10-31, on the bundle of the commit after 105dc42, as above, of Lokyr, Ghostty and Alacritty alone, which the criterion names: the raw results are in after-F2-145.jsonl.

WorkloadLokyrLokyr beforeGhosttyAlacrittyAgainst the faster
ascii.txt, 1 GiB293.1117.8301.7167.3−2.9%
seq.txt183.0117.3176.783.4+3.6%
sgr.txt245.4138.4249.8149.8−1.8%
cjk.txt143.6112.7174.8152.7−17.8%

After the core's print of clusters

On screen, on the bundle of 1380405, as above, of Lokyr, Ghostty and Alacritty; the raw results are in after-F2-147.jsonl. The median of three runs, in MiB/s:

WorkloadLokyrLokyr beforeGhosttyAlacrittyAgainst the faster
ascii.txt, 1 GiB290.5293.1295.4167.2−1.7%
seq.txt180.0183.0171.882.8+4.8%
sgr.txt240.5245.4249.9150.9−3.8%
cjk.txt185.5143.6168.4152.6+10.2%

Measured on 2026-10-31, on the commit after 696c17c, against it, of the VT core alone: lokyr-throughput, and a harness that feeds a file to the terminal in reads of 64 KiB at 120 × 40, its line feeds after carriage returns as a terminal's ONLCR puts them, the median of five runs.

InputBeforeAfter
cjk.txt163.5 MiB/s214.3+31%
Its CJK alone289322+11%
Its emoji of one codepoint302335+11%
Its ZWJ sequences and skin tones119215.5+81%
❤️ and ✔️, VS16 after a narrow pictographic89112+25%
Its flags111144+29%
Letters of combining accents5777+34%