Skip to content

Commit 3763eab

Browse files
authored
Merge pull request #20 from perke0/dev
Added benchmark in github adctions. All working
2 parents 084d6bd + e413d70 commit 3763eab

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,37 @@ jobs:
2424
run: |
2525
rm -rf build
2626
27-
- name: Configure
27+
- name: Configure (Release)
2828
run: |
29-
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
29+
cmake -S . -B build \
30+
-G Ninja \
31+
-DCMAKE_BUILD_TYPE=Release
3032
3133
- name: Build
3234
run: |
3335
cmake --build build
3436
35-
- name: Run correctness + compare to qsort
37+
- name: Run correctness test (psort vs qsort)
3638
run: |
3739
TEST_ALL=$(find build -type f -executable -name test_all | head -n 1 || true)
40+
3841
if [ -z "$TEST_ALL" ]; then
39-
echo "test_all not found"
42+
echo "test_all executable not found"
4043
find build -type f
4144
exit 1
4245
fi
46+
4347
"$TEST_ALL" 5000000 123
4448
49+
- name: 5M benchmark vs qsort (manual only)
50+
if: github.event_name == 'workflow_dispatch'
51+
run: |
52+
BENCH=$(find build -type f -executable -name bench_u128_qsort | head -n 1 || true)
53+
54+
if [ -z "$BENCH" ]; then
55+
echo "bench_u128_qsort executable not found"
56+
exit 1
57+
fi
58+
59+
"$BENCH" 5000000 123
60+

0 commit comments

Comments
 (0)