Skip to content

Commit 455bdfa

Browse files
committed
Add README
1 parent 8c79c6f commit 455bdfa

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.github/workflows/pr_benchmarks.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ jobs:
44
benchmark_pr_with_bencher:
55
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
66
permissions:
7+
pull-requests: write
78
issues: write
89
name: Continuous Benchmarking with Bencher
910
runs-on: ubuntu-latest

.github/workflows/pr_target_benchmarks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
BENCHER_PROJECT: example
1616
BENCHER_ADAPTER: json
17-
BENCHER_TESTBED: ubuntu-latest
17+
BENCHER_TESTBED: ubuntu-latest-target
1818
steps:
1919
- uses: actions/checkout@v4
2020
with:

.github/workflows/pr_track_benchmarks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
env:
1414
BENCHER_PROJECT: example
1515
BENCHER_ADAPTER: json
16-
BENCHER_TESTBED: ubuntu-latest
16+
BENCHER_TESTBED: ubuntu-latest-track
1717
BENCHMARK_RESULTS: benchmark_results.json
1818
PR_EVENT: event.json
1919
steps:

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Bencher Examples
2+
3+
[Bencher](https://bencher.dev) is a suite of [continuous benchmarking](https://bencher.dev/docs/explanation/continuous-benchmarking/) tools.
4+
The `.github` directory contains example workflows from [how to use Bencher in GitHub Actions](https://bencher.dev/docs/how-to/github-actions/).
5+
6+
- [Benchmark pushes to `main` branch](.github/workflows/benchmarks.yml)
7+
- [Benchmark pull requests from branches](.github/workflows/pr_benchmarks.yml)
8+
- [Benchmark fork pull requests with Required Reviewers](.github/workflows/pr_target_benchmarks.yml)
9+
- Benchmark fork pull requests and upload from default branch
10+
- [Run benchmarks and cache](.github/workflows/pr_and_cache_benchmarks.yml)
11+
- [Track benchmarks](.github/workflows/pr_track_benchmarks.yml)

0 commit comments

Comments
 (0)