Skip to content

Commit

Permalink
temporary benchmarks wf
Browse files Browse the repository at this point in the history
  • Loading branch information
korowa committed Jun 23, 2024
1 parent 2750458 commit df38374
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: coverage

on:
push:

jobs:
row-format-bench:
name: Row format bench
runs-on: ubuntu-latest
container:
image: amd64/rust
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
- name: Install critcmp
run: cargo install --force critcmp
- name: Python-dev
run: |
apt-get update
apt-get install -yq python3.11-dev
- name: Benchmark branch
run: |
echo BRANCH_COMMIT=`git log -n1 --oneline` >> $GITHUB_ENV
cargo bench --all-features --color always --bench row_format -- "4096 (u64|i64|bool)\(.+\)$" --save-baseline branch
- name: Checkout master
uses: actions/checkout@v4
with:
submodules: true
clean: false
ref: master
- name: Benchmark master
run: |
echo MASTER_COMMIT=`git log -n1 --oneline` >> $GITHUB_ENV
cargo bench --all-features --color always --bench row_format -- "4096 (u64|i64|bool)\(.+\)$" --save-baseline master
- name: Compare benchmark results
run: |
echo "Branch: ${{ env.BRANCH_COMMIT }}"
echo "Master: ${{ env.MASTER_COMMIT }}"
critcmp --color always master branch

0 comments on commit df38374

Please sign in to comment.