Skip to content

Commit 9c12deb

Browse files
committed
Benchmark soa_refl in Action
1 parent 4da4cc2 commit 9c12deb

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: run benchmark with soa_refl
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'reflmempp'
8+
9+
jobs:
10+
soa-benchmark:
11+
runs-on: cern-nextgen-h100
12+
container: registry.cern.ch/ngt-wp1.7/wp1.7-soa-benchmark-refl:latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: 'recursive'
17+
- name: build and compile
18+
run: |
19+
cmake -B ${{github.workspace}}
20+
cmake --build ${{github.workspace}}
21+
- name: run benchmarks
22+
run: |
23+
python3 run_benchmarks.py ${{github.workspace}} refl/soa_versions_with_refl.csv
24+
python3 plot_benchmarks.py ${{github.workspace}} refl/soa_versions_with_refl.csv
25+
echo "Files in Workspace Directory:"
26+
ls -l ${{github.workspace}}
27+
- name: collect artifacts
28+
run: |
29+
mkdir soa-benchmark-results
30+
mv ${{github.workspace}}/*.png soa-benchmark-results/
31+
mv ${{github.workspace}}/*.json soa-benchmark-results/
32+
echo "Files in Results Directory:"
33+
ls -l soa-benchmark-results
34+
- name: upload results
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: soa-benchmark-results
38+
path: soa-benchmark-results

refl/soa_versions_with_refl.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version,label
2+
soa_boost,Preprocessor Macros SoA
3+
soa_wrapper,Template Metaprogramming SoA
4+
soa_manual,Manual SoA
5+
refl/soa_refl,Reflection SoA

0 commit comments

Comments
 (0)