test: add cluster performance benchmark#8
Merged
Conversation
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.
Summary
clusterRepositorypath against a synthetic file-backed SQLite fixtureopenclaw/openclawcluster duration, and change vs baselineDetails
The benchmark uses pre-seeded fake embeddings and does not call GitHub or OpenAI. It stays within the intended short runtime budget by sampling repeated rebuilds of a 512-thread fixture for up to about 10 seconds.
The committed baseline is currently:
239.1 msopenclaw/openclawcluster duration:10m 0.0s+50%That threshold is intentionally conservative for the first pass because the baseline was bootstrapped locally rather than on a GitHub Actions runner.
Verification
pnpm --filter @ghcrawl/api-contract build && pnpm --filter @ghcrawl/api-core typecheckpnpm --filter @ghcrawl/api-core testpnpm --filter @ghcrawl/api-core test:cluster-perf