From 901df6e473e747c36454753b10f966384061ce1f Mon Sep 17 00:00:00 2001 From: ylavic Date: Wed, 6 May 2020 17:09:24 +0000 Subject: 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 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1877449 13f79535-47bb-0310-9956-ffa450edef68 --- test/testreslist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testreslist.c b/test/testreslist.c index dc72ad868..21b599569 100644 --- a/test/testreslist.c +++ b/test/testreslist.c @@ -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; -- cgit v1.2.1