Skip to content

Commit 1a4adef

Browse files
committed
Add benchmark wf
1 parent c27e30d commit 1a4adef

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Benchmark Release"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
benchmark_release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt update
20+
sudo apt install -y build-essential cmake libtbb-dev libsimdjson-dev libhwloc-dev
21+
22+
- name: Build in Release mode with benchmarks
23+
working-directory: ${{ github.workspace }}
24+
run: |
25+
mkdir -p build
26+
cd build
27+
cmake .. -DCMAKE_BUILD_TYPE=Release -DDSF_BENCHMARKS=ON -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install
28+
cmake --build . -j$(nproc) --config Release
29+
30+
- name: Run benchmarks
31+
working-directory: ${{ github.workspace }}/benchmark
32+
run: |
33+
for bench in *.out; do
34+
echo "Running $bench"
35+
./$bench
36+
done

0 commit comments

Comments
 (0)