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