Skip to content

Commit eb85278

Browse files
committed
Add mt bench run to CI
1 parent b8fe0d6 commit eb85278

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/benchmarks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
3131
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
3232
-DUMF_BUILD_BENCHMARKS=ON
33+
-DUMF_BUILD_BENCHMARKS_MT=ON
3334
-DUMF_BUILD_TESTS=OFF
3435
-DUMF_FORMAT_CODE_STYLE=OFF
3536
-DUMF_DEVELOPER_MODE=OFF
@@ -57,3 +58,7 @@ jobs:
5758
fi
5859
cat $LOG
5960
echo "[ PASSED ] The CI benchmark job PASSED."
61+
62+
- name: Run MT benchmarks
63+
working-directory: ${{github.workspace}}/build
64+
run: ./benchmark/multithread_bench

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ For building tests, multithreaded benchmarks and Disjoint Pool:
8686
UMF comes with a single-threaded micro benchmark based on [ubench](https://github.com/sheredom/ubench.h).
8787
In order to build the benchmark, the `UMF_BUILD_BENCHMARKS` CMake configuration flag has to be turned `ON`.
8888

89-
UMF also provides multithreaded benchmarks that can be enabled bysetting the `UMF_BUILD_BENCHMARKS_MT` CMake
90-
configuration flag to `ON`. Multithreaded benchmarks require a C++ support.
89+
UMF also provides multithreaded benchmarks that can be enabled by setting both
90+
`UMF_BUILD_BENCHMARKS` and `UMF_BUILD_BENCHMARKS_MT` CMake
91+
configuration flags to `ON`. Multithreaded benchmarks require a C++ support.
9192

9293
### Windows
9394

0 commit comments

Comments
 (0)