Lokyr
Documentation

Throughput on the code of the review fixes

Measured on 2026-10-23 at 19:22, with bolt-throughput alone, on the code of cad61bc, on the machine of the F0 baseline: an Apple M5 Pro, macOS 27.0.1, on AC power, with no fuzzing or build running. Rust 1.99.0, release builds. The figures after the performance fixes were measured on 1124d46, before seven changes to the VT core: three to how printing treats spacer heads, and one each to DECRC in origin mode, the loops over a row's cells, an accessor of the saved cursor, and how a page list starts and how row_text reads a head.

Method

The same as throughput-F1-51's for both cores: the same bytes fed to each in reads of 64 KiB, at 120 by 40, the median of 5 runs taken in turn; vtebench's scenarios at commit ead8003; and cat of 1 GiB. The criterion benchmarks were not run again, but reflow's.

Both cores

ScenarioBytes timedVT corealacritty_terminalRatioRatio on 1124d46
cursor_motion8.5 MiB487.9 MiB/s394.3 MiB/s1.241.22
dense_cells25.7 MiB551.1 MiB/s406.7 MiB/s1.361.29
light_cells8.6 MiB4503.3 MiB/s321.6 MiB/s14.0014.16
medium_cells8.2 MiB344.8 MiB/s268.7 MiB/s1.281.26
scrolling12.0 MiB165.3 MiB/s94.7 MiB/s1.751.74
scrolling_bottom_region12.0 MiB152.3 MiB/s226.4 MiB/s0.670.68
scrolling_bottom_small_region12.0 MiB111.1 MiB/s77.9 MiB/s1.431.43
scrolling_fullscreen8.1 MiB3268.9 MiB/s268.3 MiB/s12.1812.95
scrolling_top_region12.0 MiB141.5 MiB/s42.2 MiB/s3.363.25
scrolling_top_small_region12.0 MiB99.3 MiB/s76.2 MiB/s1.301.27
sync_medium_cells8.5 MiB341.5 MiB/s278.8 MiB/s1.221.22
unicode8.4 MiB405.4 MiB/s389.0 MiB/s1.041.03
cat of 1 GiB1024 MiB900.9 MiB/s187.5 MiB/s4.814.38

Every scenario keeps at least alacritty_terminal's rate but the bottom region, at 0.67 of it, above the 0.6 that the criterion asks of it. The ratios near 1, unicode and the bottom region among them, are 1124d46's within a few hundredths; dense_cells rose by 0.07, and the large ones, where alacritty_terminal is the slower by far, moved by up to 0.8 between the two runs, cat of 1 GiB up as alacritty_terminal was slower this time.

Reflow

benches/reflow.rs, 120 to 80 columns: 1 000 lines in 324 µs, 10 000 in 2.92 ms, 50 000 in 15.4 ms; about 0.3 µs a row, against about 1 µs when reflow was first measured.