-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (45 loc) · 1.41 KB
/
benchmark.yml
File metadata and controls
56 lines (45 loc) · 1.41 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
52
53
54
55
56
name: Benchmarks
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: benchmarks-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark-linux:
name: Linux Benchmarks
runs-on: ubuntu-latest
env:
CC: gcc-12
CXX: g++-12
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build gcc-12 g++-12 libomp-dev python3
- name: Configure
run: cmake --preset=release
- name: Build
run: cmake --build --preset release
- name: Run selected benchmarks
run: |
mkdir -p benchmark-results
if [ -x build/release/examples/02-memory-cache/aos_soa_bench ]; then
build/release/examples/02-memory-cache/aos_soa_bench \
--benchmark_format=json \
--benchmark_out=benchmark-results/memory.json
fi
if [ -x build/release/examples/04-simd-vectorization/simd_bench ]; then
build/release/examples/04-simd-vectorization/simd_bench \
--benchmark_format=json \
--benchmark_out=benchmark-results/simd.json
fi
- name: Upload benchmark artifacts
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: benchmark-results/
if-no-files-found: error