Use spend_cpu_cycles instead of volatile loop

This commit is contained in:
2025-09-15 14:07:38 -04:00
parent 528a467518
commit 9120c05847
2 changed files with 8 additions and 11 deletions

View File

@@ -233,7 +233,8 @@ target_link_libraries(bench_parser_comparison nanobench_impl weaseldb_sources
target_include_directories(bench_parser_comparison
PRIVATE ${rapidjson_SOURCE_DIR}/include)
add_executable(bench_thread_pipeline benchmarks/bench_thread_pipeline.cpp)
add_executable(bench_thread_pipeline benchmarks/bench_thread_pipeline.cpp
src/cpu_work.cpp)
target_link_libraries(bench_thread_pipeline nanobench_impl Threads::Threads)
target_include_directories(bench_thread_pipeline PRIVATE src)