gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26699 - libmicrohttpd/src/testcurl


From: gnunet
Subject: [GNUnet-SVN] r26699 - libmicrohttpd/src/testcurl
Date: Sun, 31 Mar 2013 20:34:49 +0200

Author: grothoff
Date: 2013-03-31 20:34:49 +0200 (Sun, 31 Mar 2013)
New Revision: 26699

Modified:
   libmicrohttpd/src/testcurl/perf_get.c
Log:
-updating benchmark to use new API

Modified: libmicrohttpd/src/testcurl/perf_get.c
===================================================================
--- libmicrohttpd/src/testcurl/perf_get.c       2013-03-31 18:28:43 UTC (rev 
26698)
+++ libmicrohttpd/src/testcurl/perf_get.c       2013-03-31 18:34:49 UTC (rev 
26699)
@@ -454,7 +454,16 @@
                  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 @@
   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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]