aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-31 18:34:49 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-31 18:34:49 +0000
commit1b07d1a57c967282eafdeabcb6b20e86167b22ec (patch)
tree66ba44a1153721be178188423ff6db352429a4d7
parent39affe6c5629b78e418f33787ec7a9556b287832 (diff)
downloadlibmicrohttpd-1b07d1a57c967282eafdeabcb6b20e86167b22ec.tar.gz
libmicrohttpd-1b07d1a57c967282eafdeabcb6b20e86167b22ec.zip
-updating benchmark to use new API
-rw-r--r--src/testcurl/perf_get.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index 0a9f720e..77c3193e 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -454,7 +454,16 @@ testExternalGet (int port)
454 c = NULL; 454 c = NULL;
455 } 455 }
456 } 456 }
457 MHD_run (d); 457 /* two possibilities here; as select sets are
458 tiny, this makes virtually no difference
459 in actual runtime right now, even though the
460 number of select calls is virtually cut in half
461 (and 'select' is the most expensive of our system
462 calls according to 'strace') */
463 if (0)
464 MHD_run (d);
465 else
466 MHD_run_from_select (d, &rs, &ws, &es);
458 } 467 }
459 if (NULL != c) 468 if (NULL != c)
460 { 469 {
@@ -489,10 +498,10 @@ main (int argc, char *const *argv)
489 response = MHD_create_response_from_buffer (strlen ("/hello_world"), 498 response = MHD_create_response_from_buffer (strlen ("/hello_world"),
490 "/hello_world", 499 "/hello_world",
491 MHD_RESPMEM_MUST_COPY); 500 MHD_RESPMEM_MUST_COPY);
501 errorCount += testExternalGet (port++);
492 errorCount += testInternalGet (port++, 0); 502 errorCount += testInternalGet (port++, 0);
493 errorCount += testMultithreadedGet (port++, 0); 503 errorCount += testMultithreadedGet (port++, 0);
494 errorCount += testMultithreadedPoolGet (port++, 0); 504 errorCount += testMultithreadedPoolGet (port++, 0);
495 errorCount += testExternalGet (port++);
496#ifndef WINDOWS 505#ifndef WINDOWS
497 errorCount += testInternalGet (port++, MHD_USE_POLL); 506 errorCount += testInternalGet (port++, MHD_USE_POLL);
498 errorCount += testMultithreadedGet (port++, MHD_USE_POLL); 507 errorCount += testMultithreadedGet (port++, MHD_USE_POLL);