foundationdb/flowbench/CMakeLists.txt

57 lines
1.6 KiB
CMake
Raw Normal View History

2020-08-04 06:10:31 +08:00
set(FLOWBENCH_SRCS
flowbench.actor.cpp
2021-12-13 11:28:24 +08:00
BenchCallback.actor.cpp
BenchHash.cpp
2020-07-27 05:26:23 +08:00
BenchIterate.cpp
BenchIONet2.actor.cpp
BenchMem.cpp
BenchMetadataCheck.cpp
2021-12-13 12:15:25 +08:00
BenchNet2.actor.cpp
2020-07-27 05:26:23 +08:00
BenchPopulate.cpp
2020-08-04 06:29:21 +08:00
BenchRandom.cpp
2020-08-02 04:25:47 +08:00
BenchRef.cpp
BenchStream.actor.cpp
2020-08-04 06:29:40 +08:00
BenchTimer.cpp
Add version vector microbenchmark This one measures cost of "getDelta" calls: flowbench --benchmark_filter=bench_vv 2022-03-08T22:01:42+00:00 Running ./cbuild_output/bin/flowbench Run on (32 X 1789.72 MHz CPU s) CPU Caches: L1 Data 32 KiB (x16) L1 Instruction 32 KiB (x16) L2 Unified 1024 KiB (x16) L3 Unified 36608 KiB (x1) Load Average: 0.33, 0.51, 1.05 -------------------------------------------------------------------------------------- Benchmark Time CPU Iterations UserCounters... -------------------------------------------------------------------------------------- bench_vv_getdelta/16/1 33.9 ns 33.9 ns 20604111 Tags=16 getDeltaTimes=1 items_per_second=29.514M/s bench_vv_getdelta/64/1 33.5 ns 33.5 ns 20989482 Tags=64 getDeltaTimes=1 items_per_second=29.8637M/s bench_vv_getdelta/512/1 36.5 ns 36.5 ns 19703013 Tags=512 getDeltaTimes=1 items_per_second=27.3722M/s bench_vv_getdelta/1024/1 35.2 ns 35.2 ns 19945561 Tags=1024 getDeltaTimes=1 items_per_second=28.4083M/s bench_vv_getdelta/16/8 6340 ns 6340 ns 110117 Tags=16 getDeltaTimes=8 items_per_second=1.26184M/s bench_vv_getdelta/64/8 7257 ns 7257 ns 96336 Tags=64 getDeltaTimes=8 items_per_second=1.10235M/s bench_vv_getdelta/512/8 13844 ns 13844 ns 51522 Tags=512 getDeltaTimes=8 items_per_second=577.871k/s bench_vv_getdelta/1024/8 34612 ns 34612 ns 20470 Tags=1024 getDeltaTimes=8 items_per_second=231.137k/s bench_vv_getdelta/16/64 200514 ns 200513 ns 3498 Tags=16 getDeltaTimes=64 items_per_second=319.182k/s bench_vv_getdelta/64/64 500066 ns 500057 ns 1000 Tags=64 getDeltaTimes=64 items_per_second=127.985k/s bench_vv_getdelta/512/64 570166 ns 570131 ns 1222 Tags=512 getDeltaTimes=64 items_per_second=112.255k/s bench_vv_getdelta/1024/64 747168 ns 747156 ns 939 Tags=1024 getDeltaTimes=64 items_per_second=85.6581k/s bench_vv_getdelta/16/512 1749315 ns 1749305 ns 401 Tags=16 getDeltaTimes=512 items_per_second=292.688k/s bench_vv_getdelta/64/512 6656289 ns 6656249 ns 105 Tags=64 getDeltaTimes=512 items_per_second=76.9202k/s bench_vv_getdelta/512/512 36588584 ns 36588013 ns 19 Tags=512 getDeltaTimes=512 items_per_second=13.9937k/s bench_vv_getdelta/1024/512 37691398 ns 37691154 ns 19 Tags=1024 getDeltaTimes=512 items_per_second=13.5841k/s bench_vv_getdelta/16/1024 3616253 ns 3616233 ns 193 Tags=16 getDeltaTimes=1024 items_per_second=283.168k/s bench_vv_getdelta/64/1024 13715322 ns 13715233 ns 51 Tags=64 getDeltaTimes=1024 items_per_second=74.6615k/s bench_vv_getdelta/512/1024 112346008 ns 112344280 ns 6 Tags=512 getDeltaTimes=1024 items_per_second=9.11484k/s bench_vv_getdelta/1024/1024 157170467 ns 157169544 ns 4 Tags=1024 getDeltaTimes=1024 items_per_second=6.51526k/s
2022-03-09 06:03:40 +08:00
BenchVersionVector.cpp
GlobalData.h
GlobalData.cpp)
2021-01-26 05:44:55 +08:00
if(WITH_TLS AND NOT WIN32)
set(FLOWBENCH_SRCS
${FLOWBENCH_SRCS}
BenchEncrypt.cpp)
endif()
2020-08-04 06:10:31 +08:00
project (flowbench)
# include the configurations from benchmark.cmake
configure_file(benchmark.cmake googlebenchmark-download/CMakeLists.txt)
# executing the configuration step
execute_process(
COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
RESULT_VARIABLE results
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-download
)
# checking if the configuration step passed
if(results)
message(FATAL_ERROR "Configuration step for Benchmark has Failed. ${results}")
endif()
# executing the build step
execute_process(
COMMAND ${CMAKE_COMMAND} --build . --config Release
RESULT_VARIABLE results
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-download
)
# checking if the build step passed
if(results)
message(FATAL_ERROR "Build step for Benchmark has Failed. ${results}")
endif()
2020-10-22 06:45:51 +08:00
set(BENCHMARK_ENABLE_TESTING OFF)
add_subdirectory(
${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src
${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-build
EXCLUDE_FROM_ALL
)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src/include)
2020-08-04 06:10:31 +08:00
add_flow_target(EXECUTABLE NAME flowbench SRCS ${FLOWBENCH_SRCS})
target_link_libraries(flowbench benchmark pthread flow fdbclient)