diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-09-24 16:55:10 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-09-24 16:55:10 +0300 |
commit | efd1dd05f42d5934494dbda4f63328b8f1080427 (patch) | |
tree | 567b48c237227937fe962abee456d06c8a6fc6b5 /src/testcurl | |
parent | f7c5d0d6568141b96af5061b3768fe373c4b69f2 (diff) | |
download | libmicrohttpd-efd1dd05f42d5934494dbda4f63328b8f1080427.tar.gz libmicrohttpd-efd1dd05f42d5934494dbda4f63328b8f1080427.zip |
perf_get_concurrent: reduce number of iteration on W32 as free ports
are quickly excused on W32 with large amount of CPU cores
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/perf_get_concurrent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c index 0471143c..a0c5ebb1 100644 --- a/src/testcurl/perf_get_concurrent.c +++ b/src/testcurl/perf_get_concurrent.c | |||
@@ -56,7 +56,11 @@ | |||
56 | * Ensure that free ports are not exhausted during test. | 56 | * Ensure that free ports are not exhausted during test. |
57 | */ | 57 | */ |
58 | #if CPU_COUNT > 8 | 58 | #if CPU_COUNT > 8 |
59 | #ifndef _WIN32 | ||
59 | #define ROUNDS (1 + (30000 / 12) / CPU_COUNT) | 60 | #define ROUNDS (1 + (30000 / 12) / CPU_COUNT) |
61 | #else /* _WIN32 */ | ||
62 | #define ROUNDS (1 + (10000 / 12) / CPU_COUNT) | ||
63 | #endif /* _WIN32 */ | ||
60 | #else | 64 | #else |
61 | #define ROUNDS 500 | 65 | #define ROUNDS 500 |
62 | #endif | 66 | #endif |