mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-01 18:56:00 +08:00
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
57 lines
1.6 KiB
CMake
57 lines
1.6 KiB
CMake
set(FLOWBENCH_SRCS
|
|
flowbench.actor.cpp
|
|
BenchCallback.actor.cpp
|
|
BenchHash.cpp
|
|
BenchIterate.cpp
|
|
BenchIONet2.actor.cpp
|
|
BenchMem.cpp
|
|
BenchMetadataCheck.cpp
|
|
BenchNet2.actor.cpp
|
|
BenchPopulate.cpp
|
|
BenchRandom.cpp
|
|
BenchRef.cpp
|
|
BenchStream.actor.cpp
|
|
BenchTimer.cpp
|
|
BenchVersionVector.cpp
|
|
GlobalData.h
|
|
GlobalData.cpp)
|
|
|
|
if(WITH_TLS AND NOT WIN32)
|
|
set(FLOWBENCH_SRCS
|
|
${FLOWBENCH_SRCS}
|
|
BenchEncrypt.cpp)
|
|
endif()
|
|
|
|
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()
|
|
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)
|
|
add_flow_target(EXECUTABLE NAME flowbench SRCS ${FLOWBENCH_SRCS})
|
|
target_link_libraries(flowbench benchmark pthread flow fdbclient)
|