forked from apache/arrow-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.3 KB
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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