Skip to content

test(stability): add query benchmarks + a concurrent read/write test#69

Open
qiansheng91 wants to merge 1 commit into
mainfrom
codex/stability-benchmarks
Open

test(stability): add query benchmarks + a concurrent read/write test#69
qiansheng91 wants to merge 1 commit into
mainfrom
codex/stability-benchmarks

Conversation

@qiansheng91

Copy link
Copy Markdown
Collaborator

No performance or concurrency coverage existed for the read path.

  • Go benchmarks for QueryEntities / QueryTopo and the query executor.
  • A 24-reader / 8-writer concurrent test over the memory store (race-checked).
  • A non-blocking make bench smoke step in CI.

Verification: benchmarks run; the concurrent test passes under -race.

Benchmarks (internal/graphstore, internal/query) for the hot read paths —
QueryEntities, QueryTopo, and the full Service.Execute entity path — so perf
regressions on large result sets become visible. 'make bench' runs them (smoke
by default, BENCHTIME-overridable); CI runs them non-blocking.

A concurrent read/write test stresses the memory store's RWMutex; under
'go test -race' it is a data-race regression guard for the shared maps
(verified race-clean).

@Mr-Xzz Mr-Xzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the benchmark smoke target and concurrent read/write test. The CI step is non-blocking and the new test exercises the in-memory store locking path without broadening runtime behavior. No blocking findings from my pass.

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.

2 participants