Lokyr
Documentation

Search over the scrollback

Measured on 2026-10-19 with cargo bench -p bolt-search, which just bench runs, on the machine of the F0 baseline: an Apple M5 Pro, macOS 27.0.1, on AC power, idle but for the run. Rust 1.99.0, a release build; criterion's median of 10 samples, which its baseline in target/criterion keeps for the runs after.

Method

Result

SearchTime
Literal, 100 000 lines27.2 ms
Regex, 100 000 lines28.8 ms
Literal, 1 000 000 lines272.8 ms
Regex, 1 000 000 lines291.8 ms
Literal, a line of 1 000 000 cells2.5 ms
Regex, a line of 1 000 000 cells2.6 ms
find_all, 100 000 lines, a match each28.5 ms

A search over 100 000 lines takes a fifth of the 150 ms of F3's exit criterion, and grows with the lines, ten times as long over ten times as many. That is about 4 ns a cell over the short lines, of some 68 characters each, and 2.5 ns a cell over the long line, whose cells are read as one text, without a line to start and end at each row.