This repository was archived by the owner on Jan 7, 2025. It is now read-only.
File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
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
+ # Setup Rust.
23
+ - uses : actions/checkout@v4
24
+ - run : rustup toolchain install stable --profile minimal --no-self-update
25
+
26
+ # Make sure to use cached compilation objects if they exist.
27
+ - uses : Swatinem/rust-cache@v2
28
+
29
+ # Run the benchmark and store to `output.txt`.
30
+ - name : Run benchmark
31
+ # (REMOVE) run everything instead of just q6
32
+ run : cargo bench --bench planner_bench tpch/q6 | 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"
You can’t perform that action at this time.
0 commit comments