Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 9d8ee74

Browse files
committed
add tpch benchmark workflow
1 parent b4b1aea commit 9d8ee74

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/tpch.yaml

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

0 commit comments

Comments
 (0)