Repository navigation
bench: add reproducible engine and context shaping workload - #1013
Merged
Merged
Conversation
sidkmenon
added this pull request to stack #1015
October 8, 2026 05:31
thesiti92
approved these changes
Oct 8, 2026
sidkmenon
force-pushed
the
sm/diffr-engine-bench
branch
from
October 8, 2026 15:55
c328793 to
4d94b16
Compare
Benchmark query compilation, full core/shape processing, and isolated context shaping with Criterion and bundled PR998 inputs. Document timing boundaries and plugin rebuild requirements. Imported from devdotfast/diffr#103. AI-assisted: OpenAI Codex. Agent-Session: fb96350b-c19e-48f0-b364-31e9ad2b72f4 Agent-Session: 01a1196d-bad4-7f61-bafc-f63d12217676 Agent-Session: 7d7ac281-cc4b-4437-9e1e-3872651e8bcf Agent-Session: a7af3b88-3bb7-48a2-ae20-7626a83628a1 Agent-Session: 01a11aca-5007-7b80-ad35-c0a0f746a05d Agent-Session: 01a11c34-48e4-7ec1-bb72-2c496acb90dc Agent-Session: 01a11c3d-70b4-7df1-be1a-f0e12840fadf
sidkmenon
force-pushed
the
sm/diffr-engine-bench
branch
from
October 8, 2026 16:14
4d94b16 to
29ef2b3
Compare
sidkmenon
added a commit
that referenced
this pull request
Oct 8, 2026
The plugin cursor searched both trees on most calls. Three commits: 1. Read leaf partners (`pair`, from #1014) instead of rebuilding the other side's alignment ids per call. 2. Index regions by id: side, parent and path. `cut` and `join` keep it current. No behavior change. 3. Index fold states, for `linked_regions`, `set_collapsed` and `link`. `cargo bench --bench engine` (#1013), before → after: | benchmark | before | after | |---|---|---| | `shape/pr998/context` | 1.575 s | 64 ms | | `engine/pr998/default` | 2.00 s | 233 ms | | `engine/pr998/no_context` | 148 ms | 118 ms | Tests: diffr-core cursor, present and protocol units; plugin tests; context goldens for rust, go, typescript and tsx. The full `cargo test` suite was not run.
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.
Imports devdotfast/diffr#103 by @milanb17 into the monorepo, unchanged except for the
diffr/path.cargo bench --bench engineindiffr/. Seediffr/docs/benchmarks.md.