GitHub Action for continuous benchmarking to track performance
Top 34.7% on sourcepulse
This action provides continuous benchmarking for GitHub Actions workflows, enabling users to monitor performance, detect regressions, and visualize results. It supports a wide range of languages and benchmarking tools, making it suitable for developers and teams focused on performance-critical projects.
How It Works
The action parses benchmark output from various tools (e.g., cargo bench
, go test -bench
, pytest-benchmark
) and stores the results. It can automatically push these results to a GitHub Pages branch for visualization via time-series charts. Performance regressions are detected by comparing current results against previous runs, with configurable thresholds for triggering alerts via commit comments or workflow failures.
Quick Start & Requirements
uses: benchmark-action/github-action-benchmark@v1
.secrets.GITHUB_TOKEN
is needed.Highlighted Details
gh-pages
branch for visualization.name
, unit
, and value
fields.Maintenance & Community
The project is actively maintained by benchmark-action. Community support channels are not explicitly listed, but release updates can be tracked via "release only" notifications on the repository.
Licensing & Compatibility
Limitations & Caveats
Workflows should not run on pull requests to prevent unauthorized modification of the GitHub Pages branch. Benchmark stability can be affected by the virtual environment; self-hosted runners may be necessary for highly sensitive benchmarks. Customizing the generated benchmark dashboard requires manual modification of the HTML.
2 months ago
1+ week