Skip to content

Commit daaeafb

Browse files
authored
Merge pull request #648 from biojppm/doc
Improve documentation, add benchmark results
2 parents db5747a + 3288ca1 commit daaeafb

40 files changed

Lines changed: 1476 additions & 1305 deletions

.github/workflows/benchmarks.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ jobs:
104104
os: ubuntu-24.04
105105
cmkflags: -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_C_COMPILER=clang-18
106106
- std: 17
107-
comp: vs2022
108-
os: windows-2022
109-
cmkflags: -G 'Visual Studio 17 2022' -A x64
107+
comp: vs2026
108+
os: windows-2025
109+
cmkflags: -G 'Visual Studio 18 2026' -A x64
110110
- std: 17
111-
comp: xcode15
111+
comp: xcode16
112112
os: macos-15-intel
113113
xcver: 16
114114
cmkflags: -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64
@@ -169,16 +169,16 @@ jobs:
169169
which pip
170170
python --version
171171
pip --version
172-
pip install -v -r ext/c4core/cmake/bm-xp/requirements.txt
172+
pip install -v -r proj/c4proj/bm-xp/requirements.txt
173173
python -c 'import munch ; print("ok!") ; exit(0)'
174174
echo $?
175175
- name: configure-------------------------------------------------
176176
run: |
177177
cmake -S . -B build \
178178
${{matrix.cmkflags}} \
179179
-DPython_EXECUTABLE="$(which python)" \
180-
-DC4_CXX_STANDARD=${{matrix.std}} \
181-
-DRYML_CXX_STANDARD=${{matrix.std}} \
180+
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
181+
-DCMAKE_BUILD_TYPE=Release \
182182
-DRYML_BUILD_BENCHMARKS=ON
183183
- name: build
184184
run: cmake --build build --config Release --parallel --verbose --target ryml-bm-build
@@ -188,19 +188,14 @@ jobs:
188188
run: cmake --build build --config Release --verbose --target ryml-bm-plot
189189
- name: gather benchmark results-------------------------------------------
190190
run: |
191-
set -x
192-
source vars.sh
193-
echo SRC_TAG=$SRC_TAG
194-
echo SRC_VERSION=$SRC_VERSION
195-
desc=$SRC_TAG
196-
for bl in ${{matrix.bitlinks}} ; do
197-
dst=$(echo ryml-benchmark_results/$desc/x86_64/${{matrix.cxx}}-${{matrix.bt}}-c++${{matrix.std}}-$bl | sed 's:++-:xx:g' | sed 's:+:x:g')
198-
mkdir -p $dst
199-
find build -name bm-results
200-
mv -vf build/$bl/bm/bm-results/* $dst/.
201-
done
191+
set -xe
192+
desc=`cd proj/ ; make describe`
193+
dst=ryml-benchmark-results/$desc/x86_64/
194+
name=${{matrix.comp}}-Release-cxx${{matrix.std}}
195+
mkdir -p $dst
196+
mv -vf build/bm/bm-results/ $dst/$name
202197
- name: upload benchmark result artifacts
203198
uses: actions/upload-artifact@v7
204199
with:
205-
name: ryml-benchmark_results-${{strategy.job-index}}
206-
path: ryml-benchmark_results/
200+
name: ryml-benchmark-results-${{matrix.comp}}
201+
path: ryml-benchmark-results/

.github/workflows/benchmarks.ys

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
include:
2222
- {std: 17, comp: gcc14 , os: ubuntu-24.04, cmkflags: -DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_C_COMPILER=gcc-14}
2323
- {std: 17, comp: clang18, os: ubuntu-24.04, cmkflags: -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_C_COMPILER=clang-18}
24-
#- {std: 17, comp: vs2019 , os: windows-2019, cmkflags: -G 'Visual Studio 16 2019' -A x64}
25-
- {std: 17, comp: vs2022 , os: windows-2022, cmkflags: -G 'Visual Studio 17 2022' -A x64}
26-
- {std: 17, comp: xcode15, os: macos-15-intel, xcver: 16, cmkflags: -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64}
24+
- {std: 17, comp: vs2026 , os: windows-2025, cmkflags: -G 'Visual Studio 18 2026' -A x64}
25+
- {std: 17, comp: xcode16, os: macos-15-intel, xcver: 16, cmkflags: -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64}
2726
env:: +{'BM' 'ON'} + load('share/env.yaml')
2827
steps:
2928
- :: checkout-action
@@ -41,16 +40,16 @@ jobs:
4140
which pip
4241
python --version
4342
pip --version
44-
pip install -v -r ext/c4core/cmake/bm-xp/requirements.txt
43+
pip install -v -r proj/c4proj/bm-xp/requirements.txt
4544
python -c 'import munch ; print("ok!") ; exit(0)'
4645
echo $?
4746
- name: configure-------------------------------------------------
4847
run: |
4948
cmake -S . -B build \
5049
${{matrix.cmkflags}} \
5150
-DPython_EXECUTABLE="$(which python)" \
52-
-DC4_CXX_STANDARD=${{matrix.std}} \
53-
-DRYML_CXX_STANDARD=${{matrix.std}} \
51+
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
52+
-DCMAKE_BUILD_TYPE=Release \
5453
-DRYML_BUILD_BENCHMARKS=ON
5554
- name: build
5655
run: cmake --build build --config Release --parallel --verbose --target ryml-bm-build
@@ -60,19 +59,14 @@ jobs:
6059
run: cmake --build build --config Release --verbose --target ryml-bm-plot
6160
- name: gather benchmark results-------------------------------------------
6261
run: |
63-
set -x
64-
source vars.sh
65-
echo SRC_TAG=$SRC_TAG
66-
echo SRC_VERSION=$SRC_VERSION
67-
desc=$SRC_TAG
68-
for bl in ${{matrix.bitlinks}} ; do
69-
dst=$(echo ryml-benchmark_results/$desc/x86_64/${{matrix.cxx}}-${{matrix.bt}}-c++${{matrix.std}}-$bl | sed 's:++-:xx:g' | sed 's:+:x:g')
70-
mkdir -p $dst
71-
find build -name bm-results
72-
mv -vf build/$bl/bm/bm-results/* $dst/.
73-
done
62+
set -xe
63+
desc=`cd proj/ ; make describe`
64+
dst=ryml-benchmark-results/$desc/x86_64/
65+
name=${{matrix.comp}}-Release-cxx${{matrix.std}}
66+
mkdir -p $dst
67+
mv -vf build/bm/bm-results/ $dst/$name
7468
- name: upload benchmark result artifacts
7569
uses: actions/upload-artifact@v7
7670
with:
77-
name: ryml-benchmark_results-${{strategy.job-index}}
78-
path: ryml-benchmark_results/
71+
name: ryml-benchmark-results-${{matrix.comp}}
72+
path: ryml-benchmark-results/

0 commit comments

Comments
 (0)