defragmenter_test: Run for fewer iterations under Valgrind 68/68568/3
authorDave Rigby <daver@couchbase.com>
Wed, 3 Aug 2016 13:06:19 +0000 (13:06 +0000)
committerDave Rigby <daver@couchbase.com>
Wed, 12 Oct 2016 09:33:15 +0000 (09:33 +0000)
commite65f46bdca9abd4bc34d59b949f587cf969274ba
treeb4c7a7f72010e748f645757a9c428cc67d4e4fa9
parent210cd048ea6dbda25575d26b0062b64ec9cc8c49
defragmenter_test: Run for fewer iterations under Valgrind

Currently when this test is run under Valgrind it takes ~150s to
complete; because we create a large (500,000) number of items to
operate on for the benchmark tests. There's little value in
benchmarking under Valgrind, however it is still useful to run the
tests under Valgrind to validate functional correctness.

Therefore reduce the item count to 10 when run under Valgrind. This
reduces the runtime to <10s

Change-Id: Idda46dff5963c29db6890b0c8841c80b1401c010
Reviewed-on: http://review.couchbase.org/68568
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>
CMakeLists.txt
tests/module_tests/defragmenter_test.cc