Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚡️📊 Compare the performance of Rust project branches

License

NotificationsYou must be signed in to change notification settings

gorilainvest/criterion-compare-action

 
 

Repository files navigation

Compare the performance of a PR against the base branch.


⚠️ Performance benchmarks provided by this action may fluctuate as load on GitHub Actions does. Run benchmarks locally before making any decisions based on the results.

A GitHub action that will compare the benchmark output between a PR and the base branch, using the project'scriterion.rs benchmarks.

Example

Example benchmark comparison comment

Usage

Create a.github/workflows/pull_request.yml file in your repo:

on:[pull_request]name:benchmark pull requestsjobs:runBenchmark:name:run benchmarkruns-on:ubuntu-lateststeps:      -uses:actions/checkout@v3      -uses:boa-dev/criterion-compare-action@v3with:cwd:'subDirectory (optional)'# Optional. Compare only this packagepackage:'example-package'# Optional. Compare only this benchmark targetbenchName:'example-bench-target'# Optional. Disables the default features of a cratedefaultFeatures:false# Optional. Features activated in the benchmarkfeatures:'async,tokio-support'# Needed. The name of the branch to compare with. This default uses the branch which is being pulled againstbranchName:${{ github.base_ref }}# Optional. Default is `${{ github.token }}`.token:${{ secrets.GITHUB_TOKEN }}

Troubleshooting

Unrecognized option: 'save-baseline'

If you encounter this error, you can checkthis Criterion FAQ, to find a workaround.

About

⚡️📊 Compare the performance of Rust project branches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript93.2%
  • Dockerfile6.8%

[8]ページ先頭

©2009-2025 Movatter.jp