You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2018/06/21 21:40:29 UTC

svn commit: r1834057 - /apr/apr/trunk/test/testreslist.c

Author: ylavic
Date: Thu Jun 21 21:40:29 2018
New Revision: 1834057

URL: http://svn.apache.org/viewvc?rev=1834057&view=rev
Log:
Reduce reslist test execution time.

It takes almost 2 minutes with 250 iterations, using 100 iterations takes
around 40 seconds.

Modified:
    apr/apr/trunk/test/testreslist.c

Modified: apr/apr/trunk/test/testreslist.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testreslist.c?rev=1834057&r1=1834056&r2=1834057&view=diff
==============================================================================
--- apr/apr/trunk/test/testreslist.c (original)
+++ apr/apr/trunk/test/testreslist.c Thu Jun 21 21:40:29 2018
@@ -36,7 +36,7 @@
 #define RESLIST_HMAX 20
 #define RESLIST_TTL  APR_TIME_C(35000) /* 35 ms */
 #define CONSUMER_THREADS 25
-#define CONSUMER_ITERATIONS 250
+#define CONSUMER_ITERATIONS 100
 #define CONSTRUCT_SLEEP_TIME  APR_TIME_C(25000) /* 25 ms */
 #define DESTRUCT_SLEEP_TIME   APR_TIME_C(10000) /* 10 ms */
 #define WORK_DELAY_SLEEP_TIME APR_TIME_C(15000) /* 15 ms */