aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-18 15:10:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-18 15:10:14 +0200
commit35db87c0773ac52e986fe36fe4562e06f8361f9c (patch)
treee4ad2996d4bbbbaf6a465778c61ad56accc8add4
parentmpmc_ptr_ring: disable preemption (diff)
downloadWireGuard-jd/ring_testing.tar.xz
WireGuard-jd/ring_testing.zip
selftest/mpmc_ring: lower test count for perf testingjd/ring_testing
-rw-r--r--src/selftest/mpmc_ring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selftest/mpmc_ring.h b/src/selftest/mpmc_ring.h
index 35145e7..bd45d58 100644
--- a/src/selftest/mpmc_ring.h
+++ b/src/selftest/mpmc_ring.h
@@ -11,7 +11,7 @@
#define THREADS_PRODUCER 20
#define THREADS_CONSUMER 20
-#define ELEMENT_COUNT 100000000LL /* divisible by threads_{consumer,producer} */
+#define ELEMENT_COUNT 1000000LL /* divisible by threads_{consumer,producer} */
#define QUEUE_SIZE 1024
#define EXPECTED_TOTAL ((ELEMENT_COUNT * (ELEMENT_COUNT + 1)) / 2)