commit 1b07d1a57c967282eafdeabcb6b20e86167b22ec
parent 39affe6c5629b78e418f33787ec7a9556b287832
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 31 Mar 2013 18:34:49 +0000
-updating benchmark to use new API
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
@@ -454,7 +454,16 @@ testExternalGet (int port)
c = NULL;
}
}
- MHD_run (d);
+ /* two possibilities here; as select sets are
+ tiny, this makes virtually no difference
+ in actual runtime right now, even though the
+ number of select calls is virtually cut in half
+ (and 'select' is the most expensive of our system
+ calls according to 'strace') */
+ if (0)
+ MHD_run (d);
+ else
+ MHD_run_from_select (d, &rs, &ws, &es);
}
if (NULL != c)
{
@@ -489,10 +498,10 @@ main (int argc, char *const *argv)
response = MHD_create_response_from_buffer (strlen ("/hello_world"),
"/hello_world",
MHD_RESPMEM_MUST_COPY);
+ errorCount += testExternalGet (port++);
errorCount += testInternalGet (port++, 0);
errorCount += testMultithreadedGet (port++, 0);
errorCount += testMultithreadedPoolGet (port++, 0);
- errorCount += testExternalGet (port++);
#ifndef WINDOWS
errorCount += testInternalGet (port++, MHD_USE_POLL);
errorCount += testMultithreadedGet (port++, MHD_USE_POLL);