-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.12 KB
/
bench.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
43
44
45
46
name: bench
on:
pull_request:
paths:
- '**.rs'
- '**/Cargo.*'
- '.github/workflows/bench.yml'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUST_TEST_NOCAPTURE: 1
PL_IMMIX_HEAP_SIZE: 1073741824
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
benchimmix:
name: Benchmark immix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install libasound2-dev libudev-dev
- name: Install Rust (stable)
uses: dsherret/rust-toolchain-file@v1
- name: Install LLVM
uses: Pivot-Studio/setup-llvm@main
- uses: Swatinem/rust-cache@v2
- uses: boa-dev/criterion-compare-action@v3
with:
cwd: "immix"
# Optional. Compare only this benchmark target
# benchName: "immix_bench"
# Needed. The name of the branch to compare with. This default uses the branch which is being pulled against
branchName: ${{ github.base_ref }}