Skip to content

fix: improve benchmark stability and adjust alert threshold#15

Merged
koenbeuk merged 3 commits intomainfrom
fix/benchmark-stability
Mar 30, 2026
Merged

fix: improve benchmark stability and adjust alert threshold#15
koenbeuk merged 3 commits intomainfrom
fix/benchmark-stability

Conversation

@koenbeuk
Copy link
Copy Markdown
Collaborator

Should get more stable benchmark results and no more false flags on PR merges. cc @PhenX
https://efnext.github.io/ExpressiveSharp/dev/bench/

Raised the alert-threshold to 150%. That's higher than I'd like it to be but the benchmarks are running on shared gh action runners with noisy neighbors (allegedly)

Copilot AI review requested due to automatic review settings March 30, 2026 00:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the benchmarks GitHub Actions workflow to reduce noisy benchmark alerts on PRs and improve benchmark run stability on shared runners.

Changes:

  • Ignore docs/markdown-only changes for pull_request benchmark runs.
  • Switch BenchmarkDotNet execution from a custom “short” config to --job medium for more stable measurements.
  • Increase the benchmark regression alert threshold from 120% to 150%.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 55 to +58
--filter "*"
--exporters json
--join
--job short
--iterationCount 3
--warmupCount 1
--job medium
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step previously builds in a separate step, and dotnet run will build again by default. Consider adding --no-build to the dotnet run command to avoid redundant compilation (faster workflow and less noise for benchmark timing).

Copilot uses AI. Check for mistakes.
koenbeuk and others added 2 commits March 30, 2026 01:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@koenbeuk koenbeuk merged commit 27d6bd8 into main Mar 30, 2026
7 checks passed
@koenbeuk koenbeuk deleted the fix/benchmark-stability branch March 30, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants