Skip to content

ci(bench): compare the Dart build time over three interleaved runs per side (#1132) - #1254

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
ci/1132-bench-noise
Oct 9, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
ci/1132-bench-noise

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1132

Changes

  • benchmark.yml: three runs per side, interleaved (base, PR, base, PR, base, PR), so a slow stretch of the shared runner lands on both sides. The base runs the PR's copy of benchmark/, so both sides print the same lines.
  • bench_compare.py: takes --base and --head logs and compares medians.
    • Only build p50 and p90 can flag a regression: worse by more than 10% and 0.2 ms, and slower in every pair.
    • build p99, raster, total and stutters are in the table, marked as information.
  • grid_perf_bench.dart: also prints stutters(>25ms), a missed vsync at 60 Hz (xvfb). The 120 Hz count stays for local runs.
  • Tests: scripts/ci/test_bench_compare.py (13 cases, including the feat(workspace): Explain and Cancel in the SQL toolbar #1131 numbers that used to comment) runs in the CI analyze job. It passes locally.

Still informational; the job never blocks a merge. It costs about three more benchmark runs per PR that touches the grid paths.

This PR changes the workflow itself, so the Grid performance job on it runs the new comparison.

…r side (#1132)

The grid benchmark compared one run per side on FrameTiming.totalSpan,
which includes vsync wait and software rasterising on a shared VM, so the
base itself moved by 40% between runs and PRs that did not touch the grid
got regression comments.

- Three runs per side, interleaved (base, PR, ...); medians are compared.
- Only build p50 / p90 flag a regression: worse by more than 10% and
  0.2 ms, and slower in every pair. Raster, total and stutters stay in
  the table as information.
- Stutters count gaps over 25 ms (a missed vsync at 60 Hz under xvfb).
- Unit tests for the comparator run in CI.
@github-actions github-actions Bot added performance Theme parser epic label: performance tests Theme parser epic P3 Low priority / Polish & Enhancements labels Oct 9, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 33c4e2e into dev Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low priority / Polish & Enhancements performance Theme parser epic label: performance tests Theme parser epic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant