Commit 2fb9deb0 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5418 shrink benchmark-test a bit so it completes faster


git-svn-id: file:///svn/toku/tokudb@49775 c7de825b-a66e-492c-adef-691d508d4ae1
parent e3fa359b
...@@ -49,8 +49,8 @@ if(BUILD_TESTING OR BUILD_FT_TESTS) ...@@ -49,8 +49,8 @@ if(BUILD_TESTING OR BUILD_FT_TESTS)
add_test(ft/test-assertC test-assert ok) add_test(ft/test-assertC test-assert ok)
declare_custom_tests(benchmark-test) declare_custom_tests(benchmark-test)
add_test(ft/benchmark-test benchmark-test -q --fname benchmark-test.ft) add_test(ft/benchmark-test benchmark-test -q --fname benchmark-test.ft 1)
add_test(ft/benchmark-test_256 benchmark-test --valsize 256 --verify --verify_period 4096 --fname benchmark-test_256.ft 1) add_test(ft/benchmark-test_256 benchmark-test --valsize 256 --periter 131072 --verify --verify_period 4096 --fname benchmark-test_256.ft 1)
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
benchmark-test.ft benchmark-test.ft
benchmark-test_256.ft benchmark-test_256.ft
...@@ -134,18 +134,10 @@ if(BUILD_TESTING OR BUILD_FT_TESTS) ...@@ -134,18 +134,10 @@ if(BUILD_TESTING OR BUILD_FT_TESTS)
set_tests_properties(${long_tests} PROPERTIES TIMEOUT 3600) set_tests_properties(${long_tests} PROPERTIES TIMEOUT 3600)
## some take even longer, with valgrind ## some take even longer, with valgrind
set(extra_long_tests set(extra_long_tests
ft/benchmark-test
ft/benchmark-test_256
ft/is_empty ft/is_empty
ft/subblock-test-checksum ft/subblock-test-checksum
) )
set_tests_properties(${extra_long_tests} PROPERTIES TIMEOUT 7200) set_tests_properties(${extra_long_tests} PROPERTIES TIMEOUT 7200)
## these take a really long time with valgrind
set(phenomenally_long_tests
ft/benchmark-test
)
set_tests_properties(${phenomenally_long_tests} PROPERTIES TIMEOUT 14400)
## whoa
set(catastrophically_long_tests
ft/benchmark-test_256
)
set_tests_properties(${catastrophically_long_tests} PROPERTIES TIMEOUT 28800)
endif(BUILD_TESTING OR BUILD_FT_TESTS) endif(BUILD_TESTING OR BUILD_FT_TESTS)
...@@ -23,8 +23,8 @@ static int basementnodesize = BASEMENT_NODE_SIZE; ...@@ -23,8 +23,8 @@ static int basementnodesize = BASEMENT_NODE_SIZE;
static enum toku_compression_method compression_method = TOKU_DEFAULT_COMPRESSION_METHOD; static enum toku_compression_method compression_method = TOKU_DEFAULT_COMPRESSION_METHOD;
static int keysize = sizeof (long long); static int keysize = sizeof (long long);
static int valsize = sizeof (long long); static int valsize = sizeof (long long);
static int do_verify =0; /* Do a slow verify after every insert. */ static int do_verify =0; /* Do a slow verify after every k inserts. */
static int verify_period = 1; /* how many inserts between verifies. */ static int verify_period = 256; /* how many inserts between verifies. */
static int do_serial = 1; static int do_serial = 1;
static int do_random = 1; static int do_random = 1;
......
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