liamg/go-benchmark-pr-action
Run go benchmarks on a PR, compare with the base branch, and write results as a comment. Fail the workflow if benchmarks regress below configured % threshold. Requires Go to be available on PATH (e.g. via actions/setup-go).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Github token with permission to write PR comments | yes | — |
| duration_threshold | Threshold for duration regression in % (use 0 for no threshold check) | no | 0 |
| memory_threshold | Threshold for memory-usage regression in % (use 0 for no threshold check) | no | 0 |
| allocs_threshold | Threshold for allocation count regression in % (use 0 for no threshold check) | no | 0 |
| benchmark_pattern | Pattern to match benchmarks to run | no | . |
| benchmark_package | Package to run benchmarks for | no | ./... |
| benchmark_seconds | Duration to run each benchmark for | no | 1 |
| benchmark_count | Number of times to run each benchmark (leave empty to use defaults) | no | 0 |
Outputs
no outputs