Repository navigation
perf(ci): fit the reconciler micro-suite inside its per-side budget - #700
Merged
Alexandre Zollinger Chohfi (azchohfi) merged 1 commit intoJun 26, 2026
Merged
Conversation
The 16-bench PerfBench.ControlModel micro-suite was silently dropped from every /perf comment: at --iterations 10000 it ran ~3x over the 420s per-side timeout (completing only M1-M4), so Invoke-MicroRun discarded the truncated prefix and the micro section never rendered (regressed since the suite first shipped). Every bench runs >=120 us/op -- the heaviest (M7-M9) reconcile a 1000-node tree per op -- so per-op resolution stays hundreds of thousands of times above the Stopwatch floor even at far fewer iterations. Cut the inner-iteration default 10000 -> 1000 (alloc/op is exact regardless; each per-rep mean stays >=120 ms) and raise the per-side timeout 420 -> 600s for thermal headroom on a busy shared runner. Paired-CI sample count (MicroReps=12) is unchanged. Tests: lock the new -MicroIterations/-MicroReps defaults + the 600s timeout in RunPerfBenchmark.Tests.ps1. Docs: sync the -MicroIterations default in the ci README param table and clarify the suite is 16 benches (M1-M13 + 3 supplementary). Co-authored-by: Copilot <[email protected]>
Alexandre Zollinger Chohfi (azchohfi)
force-pushed
the
perf-micro-fit-budget
branch
from
June 26, 2026 12:52
f9cf5f7 to
11f89a4
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a capacity/configuration issue in the /perf CI harness by resizing the reconciler micro-benchmark suite so it reliably completes within the per-side budget and therefore renders in /perf comments again.
Changes:
- Reduce
-MicroIterationsdefault from10000to1000forPerfBench.ControlModelmicro runs. - Increase the per-side micro-suite timeout in
Invoke-MicroRunfrom420sto600sfor headroom on shared runners. - Add/adjust CI-side PowerShell tests and README documentation to lock and describe the new defaults.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/stress_perf/ci/RunPerfBenchmark.Tests.ps1 | Adds assertions to lock MicroIterations=1000, MicroReps=12, and Invoke-MicroRun timeout 600s. |
| tests/stress_perf/ci/Run-PerfBenchmark.ps1 | Updates micro-suite defaults and increases the per-side timeout; expands inline rationale in help/comments. |
| tests/stress_perf/ci/README.md | Updates the documented default for -MicroIterations to 1000 with a brief rationale. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Alexandre Zollinger Chohfi (azchohfi)
marked this pull request as ready for review
June 26, 2026 13:21
Alexandre Zollinger Chohfi (azchohfi)
requested a review
from Chris Anderson (codemonkeychris)
as a code owner
June 26, 2026 13:21
This was referenced Jun 26, 2026
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.
What & why
The 16-bench
PerfBench.ControlModelreconciler micro-suite has been silently absent from every/perfcomment since it first shipped. Root-caused during the #692 acceptance-run validation (run 28235303559): at--MicroIterations 10000the suite runs ~3× over the 420 s per-side timeout, completing only M1–M4 of 16 benches on each side.Invoke-MicroRuncorrectly discards a truncated prefix (it can't compare a silent subset), so the micro section never rendered — onmainor PR.This is a capacity bug, not a logic bug: the parse/compare path is fine (verified locally against the partial
micro-*.jsonlfrom the #692 artifact). The suite just never finishes.The fix (pure capacity knobs)
--MicroIterationsdefault10000 → 1000. Every bench runs ≥120 µs/op — the heaviest (M7–M9) reconcile a 1000-node tree per op. At 1000 iterations each per-rep mean stays ≥120 ms, i.e. hundreds of thousands of times theStopwatchfloor, so per-op ns resolution is unchanged and alloc/op is byte-exact regardless of iteration count (GC.GetAllocatedBytesForCurrentThread, per-thread). The empirical anchor: M1–M4 alone consumed the full 420 s at 10000; a 10× cut brings the whole 16-bench suite comfortably inside budget.420 → 600 sfor thermal headroom on a busy shared runner (M4's mean ns rose ~2× across 12 reps from thermal drift). A genuine hang is still bounded; total workflow time stays well under the 75-min cap.MicroReps = 12unchanged — the paired-CI sample count (and thus the alloc CI width) is preserved.Footprint / gate
tests/stress_perf/ci/**— 0src/Reactor. Class-B harness-only.RunPerfBenchmark.Tests.ps1locks the new defaults + the 600 s timeout (43 assertions green).PerfLib.Tests.ps1unaffected (218 green).Validation note
Can't build the WinUI/PerfBench exes on the ARM64+OneDrive dev box, so the end-to-end "micro section returns" check is via a CI
/perfrun. Held as DRAFT pending coordinator review + merge press.Co-authored-by: Copilot [email protected]