You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI job which runs benchmarks in case run-benchmarks label is set in a PR and specific paths were changed (rs/, benchmarks/, examples/, Cargo.*, and the job config). Also in case the PR is pushed to master, the bench will run.
bench-analyzer scripts which reads 2 files with bench data and prints a table with bench statistics. Optionally returned table can be set to the file. Also in case threshold is introduced, if any bench doesn't pass threshold (i.e. current bench differs from the other by threshold value) the script ends with an error
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a CI workflow for running benchmarks on Rust code changes. The workflow compares benchmark results between the PR branch and the master branch to detect performance regressions.
Adds a GitHub Actions workflow that triggers on labeled PRs and pushes to master
Introduces a new binary utility for converting benchmark data formats
Configures the workflow to compare performance and comment on PRs with results
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
File
Description
benchmarks/Cargo.toml
Adds a new binary target for benchmark data conversion
.github/workflows/bench.yml
Implements the complete benchmark CI workflow with comparison logic
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
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.
This PR introduces:
run-benchmarkslabel is set in a PR and specific paths were changed (rs/,benchmarks/,examples/,Cargo.*, and the job config). Also in case the PR is pushed tomaster, the bench will run.bench-analyzerscripts which reads 2 files with bench data and prints a table with bench statistics. Optionally returned table can be set to the file. Also in casethresholdis introduced, if any bench doesn't pass threshold (i.e. current bench differs from the other by threshold value) the script ends with an error