Latest results
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.
| Build | Value |
|---|---|
| Discovery | 107 ms |
| Build (read, trigrams, symbols, imports, merge) | 4.33 s, 1,447 files/s, 9.6 MB/s |
| Resident memory after build | 111 MB (process before build: 11.1 MB) |
| Index save | 58.6 ms (24.9 MB on disk) |
| Index load, reconciling | 64.8 ms |
| Query | p50 | p95 |
|---|---|---|
| text, common word | 21.0 ms | 21.5 ms |
| text, identifier | 6.93 ms | 7.28 ms |
| text, no match | 792 ns | 1.13 µs |
| text, short (two characters) | 27.9 ms | 29.1 ms |
| text, full ranking | 20.3 ms | 20.6 ms |
| text, path-filtered | 9.99 ms | 11.0 ms |
| regex with literal | 24.4 ms | 25.2 ms |
| regex, case-insensitive | 2.79 ms | 2.97 ms |
| regex, no literal (full scan) | 34.3 ms | 36.1 ms |
| symbol, exact | 3.55 ms | 3.90 ms |
| symbol, prefix | 2.15 ms | 2.28 ms |
| references | 1.99 ms | 2.27 ms |
| incremental: modify one file | 1.64 ms | 30.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.
| Benchmark | Corpus | Mean |
|---|---|---|
| text search, common query | 100 files | 0.78 ms |
| text search, rare query | 100 files | 8.5 µs |
| text search, no match | 100 files | 0.45 µs |
| regex, literal | 100 files | 0.54 ms |
| regex, alternation | 100 files | 0.73 ms |
| regex, no literal | 100 files | 0.69 ms |
| index build | 100 files | 62 ms |
| index save / load | 1,000 files | 8.3 ms / 5.5 ms |
Values are Criterion means; the corpus is generated by
benches/search_benchmark.rs.