Skip to content

Commit 22e2e4d

Browse files
committed
ep_perfsuite: Reduce ITERATIONS for Debug builds
Similary to TSan / ASan, run with a reduced iteration count under Debug builds to speed runtime. Change-Id: Ib480dbe6b75ed02af1667d684c11a090cb4cf81e Reviewed-on: http://review.couchbase.org/112924 Reviewed-by: Ben Huddleston <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 2ffc46f commit 22e2e4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engines/ep/tests/ep_perfsuite.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@
5656
// override this, but is generally desirable for them to scale the
5757
// default iteration count instead of blindly overriding it.
5858
const size_t ITERATIONS =
59-
#if defined(THREAD_SANITIZER) || defined(ADDRESS_SANITIZER)
59+
#if defined(THREAD_SANITIZER) || defined(ADDRESS_SANITIZER) || defined(DEBUG)
6060
// Reduced iteration count for Address/ThreadSanitizer, as it runs ~20x
6161
// slower than without TSan. Note: We don't actually track
6262
// performance when run under TSan, however the workloads of this
6363
// testsuite are still useful to run under TSan to expose any data
6464
// race issues.
65+
// Similary for DEBUG builds; we don't track performance, just want
66+
// to run to check functionality.
6567
100000 / 20;
6668
#else
6769
// Set to a value a typical ~2015 laptop can run Baseline in 3s.

0 commit comments

Comments
 (0)