Skip to content

feat(stats): elapsed time in SearchStats and --stats output#4

Merged
botirk38 merged 1 commit intomasterfrom
feat/stats-elapsed
Apr 3, 2026
Merged

feat(stats): elapsed time in SearchStats and --stats output#4
botirk38 merged 1 commit intomasterfrom
feat/stats-elapsed

Conversation

@botirk38
Copy link
Copy Markdown
Owner

@botirk38 botirk38 commented Apr 3, 2026

Summary

  • SearchStats.elapsed: wall-clock duration for the search phase (matcher build + scanning the post-filter candidate list), for both run_index_with_stats and run_walk_with_stats.
  • CLI --stats: third stderr line, e.g. 0.000123s elapsed.
  • AGENTS.md: branch naming guide (feat/, fix/, etc.) — replaces opaque phase-N names.
  • Matrix: docs/rg-compat-matrix.md stats row notes elapsed; bytes scanned still TODO.

Validation

cargo fmt --all -- --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo test --workspace --all-features.

- Add SearchStats.elapsed (Duration) measured over matcher build + candidate scan
- Print elapsed seconds on stderr with --stats
- Document branch naming (feat/fix/docs/chore) in AGENTS.md
- Update rg-compat-matrix stats row
@botirk38 botirk38 merged commit 4dd33f3 into master Apr 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant