forked from apache/datafusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try running a basic comparison benchmark between base and pr commit
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Run and Cache Benchmarks | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, opened, reopened, synchronize] | ||
|
||
jobs: | ||
benchmark: | ||
name: Run Benchmarks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
|
||
- name: Setup data and benchmark PR changes | ||
uses: actions/checkout@v4 | ||
run: | | ||
cd benchmarks | ||
./bench.sh data tpch10 | ||
./bench.sh data clickbench_1 | ||
./bench.sh run tpch10 | ||
./bench.sh run clickbench_1 | ||
- name: Benchmark baseline and compare | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.base.sha }} | ||
run: | | ||
cd benchmarks | ||
./bench.sh run tpch10 | ||
./bench.sh run clickbench_1 | ||
pip3 install rich | ||
./bench.sh compare ${{ github.event.pull_request.base.ref }}" ${{ github.ref }}" |
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