Skip to content

Commit

Permalink
fix(ci): fix benchmark workflow (#847)
Browse files Browse the repository at this point in the history
fix some bugs in #845 😅

---------

Signed-off-by: Runji Wang <wangrunji0408@163.com>
  • Loading branch information
wangrunji0408 committed Apr 16, 2024
1 parent fd5fe40 commit a94674d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,6 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -29,9 +36,13 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Generate TPC-H 1GB dataset
run: make tpch
- name: Run benchmark
run: cargo bench --bench tpch -- --output-format bencher | tee output.txt
# FIXME: skip q21 as it will run out of memory
run: cargo bench --bench tpch -- --output-format bencher "q(1?\d|2[02])$" | tee output.txt
- name: Store benchmark result
if: github.event_name != 'pull_request'
uses: benchmark-action/github-action-benchmark@v1
with:
name: Rust Benchmark
Expand Down

0 comments on commit a94674d

Please sign in to comment.