Skip to content

Commit

Permalink
Update benchmark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral authored Apr 9, 2024
1 parent 74d59b3 commit 5802ab2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
BENCHER_TESTBED: benchmarking-runner-hehe
PR_BENCHMARK_RESULTS: benches/change.txt
BASE_BENCHMARK_RESULTS: benches/base.txt
BRANCH_NAME: ${{ github.head_ref }}_commit_${{ github.event.pull_request.head.sha }}
UPPER_BOUNDARY: 0.10
steps:
- name: Check out code
Expand All @@ -146,15 +147,15 @@ jobs:
- name: Track base benchmarks
run: |
bencher run \
--if-branch '${{ github.head_ref }}_commit_${{ github.event.pull_request.head.sha }}' \
--if-branch "$BRANCH_NAME" \
--else-branch \
--token "${{ secrets.BENCHER_API_TOKEN }}" \
--file "$BASE_BENCHMARK_RESULTS"
- name: Create PR threshold
run: |
bencher threshold create \
--branch '${{ github.head_ref }}_commit_${{ github.event.pull_request.head.sha }}' \
--branch "$BRANCH_NAME" \
--testbed "$BENCHER_TESTBED" \
--measure latency \
--test percentage \
Expand All @@ -163,9 +164,13 @@ jobs:
- name: Track PR Benchmarks
run: |
bencher run \
--branch '${{ github.head_ref }}_commit_${{ github.event.pull_request.head.sha }}' \
bencher run \
--branch "$BRANCH_NAME" \
--token "${{ secrets.BENCHER_API_TOKEN }}" \
--github-actions "${{ secrets.GITHUB_TOKEN }}" \
--err \
--file "$PR_BENCHMARK_RESULTS"
--github-actions "${{ secrets.GITHUB_TOKEN }}" \
--err \
--file "$PR_BENCHMARK_RESULTS"

0 comments on commit 5802ab2

Please sign in to comment.