diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2020-05-06 17:09:24 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2020-05-06 17:09:24 +0000 |
commit | 901df6e473e747c36454753b10f966384061ce1f (patch) | |
tree | 2a9bd4069cf3eaba411a523e04c4e6094f4bfcb2 | |
parent | 331fb4325bbad39ddd45f8c5fde3a4254409be40 (diff) | |
download | libapr-901df6e473e747c36454753b10f966384061ce1f.tar.gz |
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
-rw-r--r-- | test/testreslist.c | 8 |
1 files 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; |