Skip to content

test(vector/bench): land the deletion-aware search benchmark from the #625 work (#848)#850

Merged
mosuka merged 2 commits into
mainfrom
test/deletion-search-bench
Jul 10, 2026
Merged

test(vector/bench): land the deletion-aware search benchmark from the #625 work (#848)#850
mosuka merged 2 commits into
mainfrom
test/deletion-search-bench

Conversation

@mosuka

@mosuka mosuka commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Lands deletion_search_bench, developed during #625's investigation and archived with its NO-GO diff (the abandoned COW source changes stay abandoned — this restores only the benchmark + its Cargo.toml registration).

  • VectorStore::search (HNSW graph path) on a committed in-memory index: n = 10 000, eager int8, top-10.
  • del0pct: the pristine, bookkeeping-free traversal (regression guard).
  • del10pct: 10% soft-deleted docs — the first benchmark covering the per-neighbour is_deleted bookkeeping path.

Measures very stably (same-code spread ±0.06–3.5% during #625, far tighter than raw HNSW-searcher benches). Baseline on current main: del0pct 83.0 µs, del10pct 62.3 µs — consistent with the #625-era measurements.

Testing

  • cargo bench --bench deletion_search_bench runs both cases (baseline above); fmt/clippy clean.
  • Bench-only change: no library code touched.

Closes #848

…625 work (#848)

Add deletion_search_bench, developed during #625's investigation and
archived with its NO-GO diff: VectorStore::search (HNSW graph path) on
a committed in-memory index (n=10k, eager int8, top-10), measuring the
pristine traversal (del0pct) and the deletion-bookkeeping traversal
with 10% soft-deleted docs (del10pct).

This is the first benchmark covering the per-neighbour is_deleted
bookkeeping path. It measures very stably (same-code spread was
+/-0.06-3.5% during #625, far tighter than raw HNSW-searcher benches);
baseline on current main: del0pct 83.0 us, del10pct 62.3 us.

Closes #848
@mosuka mosuka merged commit f3b0409 into main Jul 10, 2026
22 checks passed
@mosuka mosuka deleted the test/deletion-search-bench branch July 10, 2026 15:07
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.

test(vector/bench): land the deletion-aware search benchmark from the #625 work

1 participant