-
Notifications
You must be signed in to change notification settings - Fork 26
51 lines (44 loc) · 1.69 KB
/
tpch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Rust TPC-H Benchmarks
# Do not run this workflow on pull request since this workflow has permission to modify contents.
on:
push:
branches:
- main
- continuous-bench-attempt
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
jobs:
benchmark:
name: Run Rust benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup Rust.
- run: rustup toolchain install stable --profile minimal --no-self-update
# Make sure to use cached compilation objects if they exist.
- uses: Swatinem/rust-cache@v2
# Run the benchmark and store the result in `output.txt`.
- name: Run benchmark
run: cargo bench --bench planner_bench tpch/ -- --output-format bencher | tee output.txt
# Run the `github-action-benchmark` action.
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Rust Benchmark
tool: "cargo"
output-file-path: output.txt
gh-pages-branch: gh-pages
github-token: ${{ secrets.GITHUB_TOKEN }}
# Automatically push the results to the GitHub pages branch.
auto-push: true
# Show alert with commit comment on detecting possible performance regression.
alert-threshold: "125%"
summary-always: true
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: "@connortsui20"
# Push to dedicated benchmark result repository.
gh-repository: "github.com/cmu-db/optd-benchmark"