Commit af1b6b03 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Fixes #5622. Speed up {{{test_groupcommit_count.bdb}}}.

git-svn-id: file:///svn/toku/tokudb@48989 c7de825b-a66e-492c-adef-691d508d4ae1
parent 795c65c0
...@@ -107,7 +107,7 @@ set_ldflags_if_supported( ...@@ -107,7 +107,7 @@ set_ldflags_if_supported(
## set extra debugging flags and preprocessor definitions ## set extra debugging flags and preprocessor definitions
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -O0") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -O0")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -O0") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -O0")
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _FORTIFY_SOURCE=2) # set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG _FORTIFY_SOURCE=2)
## set extra release flags ## set extra release flags
if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang)
......
...@@ -16,7 +16,12 @@ DB_ENV *env; ...@@ -16,7 +16,12 @@ DB_ENV *env;
DB *db; DB *db;
int do_sync=1; int do_sync=1;
#ifdef TOKUDB
#define NITER 100 #define NITER 100
#else
// BDB is slow. Reduce the work.
#define NITER 25
#endif
static void *start_a_thread (void *i_p) { static void *start_a_thread (void *i_p) {
int *CAST_FROM_VOIDP(which_thread_p, i_p); int *CAST_FROM_VOIDP(which_thread_p, i_p);
...@@ -124,7 +129,12 @@ do_test (int N) { ...@@ -124,7 +129,12 @@ do_test (int N) {
} }
} }
#ifdef TOKUDB
int log_max_n_threads_over_10 = 3; int log_max_n_threads_over_10 = 3;
#else
// BDB is slow. Reduce the work.
int log_max_n_threads_over_10 = 2;
#endif
static void static void
my_parse_args (int argc, char *const argv[]) { my_parse_args (int argc, char *const argv[]) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment