Lokyr
Documentation

Throughput after the performance fixes

On this page

Measured on 2026-10-23, from 00:54 to 00:59, with just bench on the code of 1124d46, on the machine of the F0 baseline: an Apple M5 Pro, macOS 27.0.1, on AC power, at night, with no sleep during the run and the fuzzing started after it. Rust 1.99.0, release builds, alacritty_terminal 0.26.0.

Method

The same as throughput-F1-50's: both cores fed the same bytes in reads of 64 KiB by bolt-throughput, at 120 by 40, the median of 5 runs taken in turn; vtebench's scenarios at commit ead8003; cat of 1 GiB; and criterion for the VT core alone.

Both cores

ScenarioBytes timedVT corealacritty_terminalRatioRatio before the fixes
cursor_motion8.5 MiB462.2 MiB/s378.8 MiB/s1.220.83
dense_cells25.7 MiB536.3 MiB/s416.6 MiB/s1.290.94
light_cells8.6 MiB4526.5 MiB/s319.7 MiB/s14.163.26
medium_cells8.2 MiB337.9 MiB/s268.8 MiB/s1.260.74
scrolling12.0 MiB168.7 MiB/s96.9 MiB/s1.740.95
scrolling_bottom_region12.0 MiB157.0 MiB/s229.2 MiB/s0.680.04
scrolling_bottom_small_region12.0 MiB109.1 MiB/s76.5 MiB/s1.430.17
scrolling_fullscreen8.1 MiB3851.2 MiB/s297.4 MiB/s12.953.53
scrolling_top_region12.0 MiB146.5 MiB/s45.1 MiB/s3.250.21
scrolling_top_small_region12.0 MiB101.3 MiB/s79.7 MiB/s1.270.17
sync_medium_cells8.5 MiB344.8 MiB/s283.2 MiB/s1.220.73
unicode8.4 MiB400.5 MiB/s387.2 MiB/s1.030.39
cat of 1 GiB1024 MiB940.2 MiB/s214.7 MiB/s4.383.33

bolt-replay --bench replays the same file at 959.5 MiB/s, the median of 5 runs, against 489.5 MiB/s before the fixes.

The VT core alone

BenchmarkThroughputBefore the fixes
parser, plain ASCII12.8 GiB/s12.6 GiB/s
parser, colored output1.15 GiB/s887 MiB/s
parser, Japanese text with emoji1.03 GiB/s738 MiB/s
parser, the cursor moved for every character1.03 GiB/s542 MiB/s
terminal, plain ASCII3.18 GiB/s1.00 GiB/s
terminal, colored output361 MiB/s313 MiB/s
terminal, Japanese text with emoji222 MiB/s138 MiB/s
terminal, the cursor moved for every character476 MiB/s305 MiB/s
grid, scrolling at the scrollback's limit211.7 M rows/s72.2 M rows/s
grid, writing a row of 120 columns and scrolling39.7 M rows/s10.6 M rows/s
reflow, 120 to 80 columns, 1 000 to 50 000 lines3.13 to 3.45 M rows/s828 000 to 850 000 rows/s

Against the budget

The budget is at least alacritty_terminal's throughput in every scenario, but the bottom region, for which the criterion asks for 0.6 of it at least. Every scenario passes: the twelve others at 1.03 to 14.16, the bottom region at 0.68. unicode passes by the least, 3%.

Taken at rest, the ratios are above those of the measures taken while the fuzzing ran, as the fixes and the bottom scroll region's own work were made: the bottom region 0.68 against 0.65, and 0.66 after that work, cursor_motion 1.22 against 1.07 to 1.18.

The same run measured the search, whose report is search-F1-54. It was 14% to 18% slower than there: 31.1 ms over 100 000 lines against 27.2, 2.96 ms over a line of 1 000 000 cells against 2.5. The loop over a row's cells counts their columns with (0..=u16::MAX).zip(…), so that a row of 65 535 columns does not overflow the count, and the inclusive range does not optimize as the open one did: with an open counter of u32, the search over 100 000 lines takes 25.9 ms, 16.7% less than the 31.1 above. A later change takes it, and the same loop in three other places.