Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Latest results

Loading the latest results from the benchmark workflow…

Pinned run

From run 40476203033 on commit 3e05273 (2026-10-27, version 0.19.0), GitHub-hosted ubuntu-latest (AMD EPYC 7763, 4 vCPU, Ubuntu 24.04).

The README carries the same numbers; the per-commit trend is at dev/bench.

Text and regex queries that match often take tens of milliseconds because fcs ranks up to 32,768 matches before it returns page one. Before v0.17.0 it ranked 512, and the same queries took about 1 ms but page one held only 10% of the exhaustive top 50 (81% now). Search limits has the measurements and the cost on small repositories.

Real corpus: tokio 1.45.0 + Django 5.2

6,268 files, 41.4 MB of text, 385k symbol references, 136k distinct trigrams, 9,784 dependency edges.

BuildValue
Discovery107 ms
Build (read, trigrams, symbols, imports, merge)4.33 s, 1,447 files/s, 9.6 MB/s
Resident memory after build111 MB (process before build: 11.1 MB)
Index save58.6 ms (24.9 MB on disk)
Index load, reconciling64.8 ms
Queryp50p95
text, common word21.0 ms21.5 ms
text, identifier6.93 ms7.28 ms
text, no match792 ns1.13 µs
text, short (two characters)27.9 ms29.1 ms
text, full ranking20.3 ms20.6 ms
text, path-filtered9.99 ms11.0 ms
regex with literal24.4 ms25.2 ms
regex, case-insensitive2.79 ms2.97 ms
regex, no literal (full scan)34.3 ms36.1 ms
symbol, exact3.55 ms3.90 ms
symbol, prefix2.15 ms2.28 ms
references1.99 ms2.27 ms
incremental: modify one file1.64 ms30.8 ms

Ranking quality in the same run: precision@1 1.00, precision@5 1.00.

Synthetic (Criterion), last CI run

From run 40113519420 on commit 140425f (v0.19.0, 2026-10-24), the last run before the Benchmarks workflow replaced these suites with instruction counts (see methodology). They still run locally with cargo bench.

BenchmarkCorpusMean
text search, common query100 files0.78 ms
text search, rare query100 files8.5 µs
text search, no match100 files0.45 µs
regex, literal100 files0.54 ms
regex, alternation100 files0.73 ms
regex, no literal100 files0.69 ms
index build100 files62 ms
index save / load1,000 files8.3 ms / 5.5 ms

Values are Criterion means; the corpus is generated by benches/search_benchmark.rs.