diff options
Diffstat (limited to 'archive/2025/summer/bsc_karidas/cmake/benchmarks.cmake')
| -rw-r--r-- | archive/2025/summer/bsc_karidas/cmake/benchmarks.cmake | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/archive/2025/summer/bsc_karidas/cmake/benchmarks.cmake b/archive/2025/summer/bsc_karidas/cmake/benchmarks.cmake new file mode 100644 index 000000000..7f2bb376e --- /dev/null +++ b/archive/2025/summer/bsc_karidas/cmake/benchmarks.cmake @@ -0,0 +1,37 @@ +set(BENCHMARK_LIBS + PRIVATE + GDPR_Logging_lib + OpenSSL::SSL + OpenSSL::Crypto + ZLIB::ZLIB +) + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/benchmarks) + +set(VALIDATION_BENCHMARKS + batch_size + concurrency + scaling_concurrency + encryption_compression_usage + file_rotation + queue_capacity +) + +set(WORKLOAD_BENCHMARKS + compression_ratio + diverse_filepaths + large_batches + main + multi_producer_small_batches + single_entry_appends +) + +foreach(benchmark ${VALIDATION_BENCHMARKS}) + add_executable(${benchmark}_benchmark benchmarks/validation/${benchmark}.cpp) + target_link_libraries(${benchmark}_benchmark ${BENCHMARK_LIBS}) +endforeach() + +foreach(benchmark ${WORKLOAD_BENCHMARKS}) + add_executable(${benchmark}_benchmark benchmarks/workloads/${benchmark}.cpp) + target_link_libraries(${benchmark}_benchmark ${BENCHMARK_LIBS}) +endforeach() \ No newline at end of file |