-
Notifications
You must be signed in to change notification settings - Fork 437
51 lines (43 loc) · 1.13 KB
/
codspeed.yml
File metadata and controls
51 lines (43 loc) · 1.13 KB
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
47
48
49
50
51
name: CodSpeed
on:
push:
branches: [master]
pull_request:
# Allow CodSpeed to trigger backtest performance analysis
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -e -l {0}
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set conda environment
uses: mamba-org/setup-micromamba@main
with:
environment-name: myenv
environment-file: environment-dev.yml
init-shell: bash
cache-downloads: true
- name: Build benchmarks
run: |
cmake -G Ninja -Bbuild \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-DBUILD_BENCHMARK=ON \
-DXTENSOR_USE_XSIMD=ON \
-DCODSPEED_MODE=simulation
cmake --build build --target benchmark_xtensor --parallel 8
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
mode: simulation
run: ./build/benchmark/benchmark_xtensor