[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-cvs
Subject:    svn commit: r1877449 - /apr/apr/trunk/test/testreslist.c
From:       ylavic () apache ! org
Date:       2020-05-06 17:09:24
Message-ID: 20200506170924.E693117C9A8 () svn01-us-east ! apache ! org
[Download RAW message or body]

Author: ylavic
Date: Wed May  6 17:09:24 2020
New Revision: 1877449

URL: http://svn.apache.org/viewvc?rev=1877449&view=rev
Log:
testreslist: reduce overall test time.

The time doubled in r1877447 by re-testing the whole thing with in FIFO mode,
here divide all sleep delays by ten to reach a reasonable overall time.

- Before:
$ time test/testall testreslist                                                       \
/testreslist         : SUCCESS All tests passed.

real    1m6.789s
user    0m0.205s
sys     0m0.599s

- After:
$ time test/testall testreslist                                                       \
/testreslist         : SUCCESS All tests passed.

real    0m7.005s
user    0m0.232s
sys     0m0.478s

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=1877449&r1=1877448&r2=1877449&view=diff
 ==============================================================================
--- apr/apr/trunk/test/testreslist.c (original)
+++ apr/apr/trunk/test/testreslist.c Wed May  6 17:09:24 2020
@@ -34,12 +34,12 @@
 #define RESLIST_MIN   3
 #define RESLIST_SMAX 10
 #define RESLIST_HMAX 20
-#define RESLIST_TTL  APR_TIME_C(35000) /* 35 ms */
+#define RESLIST_TTL  APR_TIME_C(3500) /* 3.5 ms */
 #define CONSUMER_THREADS 25
 #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 */
+#define CONSTRUCT_SLEEP_TIME  APR_TIME_C(2500) /* 2.5 ms */
+#define DESTRUCT_SLEEP_TIME   APR_TIME_C(1000) /* 1.0 ms */
+#define WORK_DELAY_SLEEP_TIME APR_TIME_C(1500) /* 1.5 ms */
 
 typedef struct {
     apr_interval_time_t sleep_upon_construct;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic