Repository navigation
Add CRUD and query benchmarks for core Rust operations - #1851
Merged
Merged
Conversation
The core package had one Criterion bench (atomic ops, OCC, BM25, playbook) but no coverage of CRUD, query, JSON-path, or vector-search operations. Add a second hermetic bench (query_crud) so those paths have regression coverage. - CRUD: single insert, bulk insert (1000), update, delete, single get - query: query_nodes_simple by type / content / large result set, and the mentioned_by mention-join at 10/100/500 - JSON-path: QueryService on the indexed node_type column vs a non-indexed json_extract property over the same corpus - vector: search_embeddings (vec0 KNN) over precomputed pseudo-random unit vectors (no model load — stays hermetic) Bench-only: no product code changed; runs against a fresh tempfile store. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
Author
|
APPROVE — Bench-only change, no product code touched. Reviewed: hermetic (fresh tempfile store, no network/model — vector bench uses precomputed pseudo-random unit vectors), exercises the real APIs (create_mention→mentioned_by, search_embeddings vec0 KNN), covers both #137 (CRUD/vector/JSON-path) and #157 (query_nodes_simple filters + mentioned_by at scale). Criterion already a dev-dep; adds a second [[bench]] target. Full pre-push gate green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #137.
Closes #157.
What
The core package had one Criterion bench (atomic ops, OCC, BM25, playbook) but no coverage of CRUD, query, JSON-path, or vector-search paths. Adds a second hermetic bench (
benches/query_crud.rs) — the query group covers #157's ask (query_nodes_simple filters,mentioned_by, large result sets).query_nodes_simpleby type / content / large result set;mentioned_byat 10/100/500QueryServiceon the indexednode_typecolumn vs a non-indexedjson_extractpropertysearch_embeddings(vec0 KNN) over precomputed pseudo-random unit vectors — no model load, stays hermeticNotes
performancebench); this adds a second[[bench]]target.