-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to GitHub Actions-based benchmarks.
[only benchmarks]
- Loading branch information
Showing
4 changed files
with
104 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Benchmarks | ||
permissions: | ||
statuses: read # find Buildkite URL from PR status | ||
contents: write # update benchmark contents in gh-pages branch | ||
pull-requests: write # comment on PR with benchmark results | ||
deployments: write # deploy GitHub pages website | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
paths: | ||
- "src/**/*" | ||
- "lib/**/*" | ||
- "ext/**/*" | ||
- "perf/**/*" | ||
- ".buildkite/**/*" | ||
- "Project.toml" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "src/**/*" | ||
- "lib/**/*" | ||
- "ext/**/*" | ||
- "perf/**/*" | ||
- ".buildkite/**/*" | ||
- "Project.toml" | ||
|
||
jobs: | ||
benchmark: | ||
if: | | ||
contains(github.event.head_commit.message, '[only benchmarks]') || | ||
!contains(github.event.head_commit.message, '[only') && | ||
!contains(github.event.head_commit.message, '[skip benchmarks]') && | ||
!github.event.pull_request.draft | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Buildkite Artifacts | ||
id: download | ||
uses: EnricoMi/download-buildkite-artifact-action@v1 | ||
with: | ||
buildkite_token: ${{ secrets.BUILDKITE_TOKEN }} | ||
ignore_build_states: blocked,canceled,skipped,not_run | ||
ignore_job_states: timed_out,failed | ||
output_path: artifacts | ||
|
||
- name: Locate Benchmarks Artifact | ||
id: locate | ||
if: ${{ steps.download.outputs.download-state == 'success' }} | ||
run: echo "path=$(find artifacts -type f -name benchmarkresults.json 2>/dev/null)" >> $GITHUB_OUTPUT | ||
|
||
- name: Upload Benchmark Results | ||
if: ${{ steps.locate.outputs.path != '' }} | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
name: CUDA.jl Benchmarks | ||
tool: "julia" | ||
output-file-path: ${{ steps.locate.outputs.path }} | ||
benchmark-data-dir-path: "bench" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
comment-always: ${{ github.event_name == 'pull_request' }} | ||
summary-always: true | ||
alert-threshold: "125%" | ||
fail-on-alert: false | ||
auto-push: ${{ github.event_name != 'pull_request' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters