Repository navigation
Conversation
Benchmark query compilation, full core/shape processing, and isolated context shaping with Criterion and bundled PR998 inputs. Document timing boundaries and plugin rebuild requirements. AI-assisted: OpenAI Codex.
This was referenced Oct 8, 2026
This branch has not been deployed
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
Add a reproducible Criterion workload for investigating engine/context-folding performance:
Bundles four TypeScript/TSX before/after pairs from Whiteboard PR #998 (215,152 bytes), with provenance, hashes, and their MIT license. The benchmark reuses the actual CLI component host; the only host-source edit makes a module path explicit so it can also compile in the bench target.
docs/benchmarks.mddescribes baseline comparisons, timing boundaries, and rebuilding bundled plugin components after changing their Rust sources. These are native CLI/Wasmtime measurements, not browser-WASM timings. No-context also removes its query contributions; isolated shaping uses fresh clones of the same default-query trees.Evidence
cargo benchworkload for this regression; reproducing the earlier measurement required an external fixture/harness.cargo bench --locked --bench engine -- --save-baseline initialandcargo bench --locked --bench engine -- --test(all five report success).Merge Danger
Door: two-way. Blast Radius: development-only benchmark/dependency/fixture additions and one equivalent module-path annotation; no intended engine behavior change. Initial compilation includes Wasmtime and parser dependencies; full sampling takes longer than the quick
--testcheck.AI-assisted: OpenAI Codex.