# Benchmark tooling
End-to-end and sampling benchmarks live in the `.justfile`:
```
just bench # hyperfine over the big fixtures in fixtures/benchmarks/
just bench-readme # reproduce the README headline stat (lines/sec + peak RSS)
just profile # macOS `sample` of the release binary on a big fixture
```
In-crate micro-benchmarks (chunk sizing, memory budget internals, file
processors) run with `cargo bench` — see `benches/`.
`generate_test_data.py` produces the three gitignored benchmark fixtures
deterministically: content is derived from line index with fixed timestamp
bases, so regeneration is byte-identical and benchmark numbers are comparable
across machines and time. Existing fixtures are never overwritten. Run it via
any `just bench*` recipe, which generate missing fixtures automatically.
Historical optimization results are in `docs/`.