mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Renamed fdbbench to flowbench
This commit is contained in:
parent
603f2ef769
commit
273d34be1a
@ -177,9 +177,9 @@ else()
|
||||
include(CPack)
|
||||
endif()
|
||||
|
||||
set(BUILD_BENCHMARK OFF CACHE BOOL "Build microbenchmark program (builds google microbenchmark dependency)")
|
||||
if(BUILD_BENCHMARK)
|
||||
add_subdirectory(fdbbench)
|
||||
set(BUILD_FLOWBENCH OFF CACHE BOOL "Build microbenchmark program (builds google microbenchmark dependency)")
|
||||
if(BUILD_FLOWBENCH)
|
||||
add_subdirectory(flowbench)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
|
@ -20,12 +20,12 @@
|
||||
|
||||
#include "benchmark/benchmark.h"
|
||||
|
||||
#include "fdbbench/GlobalData.h"
|
||||
#include "fdbclient/CommitTransaction.h"
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "fdbclient/MutationList.h"
|
||||
#include "flow/Arena.h"
|
||||
#include "flow/FastAlloc.h"
|
||||
#include "flowbench/GlobalData.h"
|
||||
|
||||
void populate(Standalone<VectorRef<MutationRef>>& mutations, size_t items, size_t size, KeyRef key, ValueRef value) {
|
||||
mutations = Standalone<VectorRef<MutationRef>>{};
|
@ -20,11 +20,11 @@
|
||||
|
||||
#include "benchmark/benchmark.h"
|
||||
|
||||
#include "fdbbench/GlobalData.h"
|
||||
#include "fdbclient/CommitTransaction.h"
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "flow/Arena.h"
|
||||
#include "flow/FastAlloc.h"
|
||||
#include "flowbench/GlobalData.h"
|
||||
|
||||
static constexpr bool EMPLACE_BACK = true;
|
||||
static constexpr bool PUSH_BACK = false;
|
@ -20,12 +20,12 @@
|
||||
|
||||
#include "benchmark/benchmark.h"
|
||||
|
||||
#include "fdbbench/GlobalData.h"
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "flow/flow.h"
|
||||
#include "flow/TLSConfig.actor.h"
|
||||
#include "flow/ThreadHelper.actor.h"
|
||||
#include "flow/network.h"
|
||||
#include "flowbench/GlobalData.h"
|
||||
|
||||
#include <thread>
|
||||
|
@ -1,5 +1,5 @@
|
||||
set(FDBBENCH_SRCS
|
||||
fdbbench.actor.cpp
|
||||
set(FLOWBENCH_SRCS
|
||||
flowbench.actor.cpp
|
||||
BenchIterate.cpp
|
||||
BenchPopulate.cpp
|
||||
BenchRef.cpp
|
||||
@ -7,7 +7,7 @@ set(FDBBENCH_SRCS
|
||||
GlobalData.h
|
||||
GlobalData.cpp)
|
||||
|
||||
project (fdbbench)
|
||||
project (flowbench)
|
||||
# include the configurations from benchmark.cmake
|
||||
configure_file(benchmark.cmake googlebenchmark-download/CMakeLists.txt)
|
||||
# executing the configuration step
|
||||
@ -36,5 +36,5 @@ add_subdirectory(
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src/include)
|
||||
add_flow_target(EXECUTABLE NAME fdbbench SRCS ${FDBBENCH_SRCS})
|
||||
target_link_libraries(fdbbench benchmark pthread flow fdbclient)
|
||||
add_flow_target(EXECUTABLE NAME flowbench SRCS ${FLOWBENCH_SRCS})
|
||||
target_link_libraries(flowbench benchmark pthread flow fdbclient)
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* fdbbench.actor.cpp
|
||||
* flowbench.actor.cpp
|
||||
*
|
||||
* This source file is part of the FoundationDB open source project
|
||||
*
|
Loading…
x
Reference in New Issue
Block a user