]> git.saurik.com Git - redis.git/blobdiff - benchmark.c
incremented version number to 1.001, AKA Redis edge is no longer stable...
[redis.git] / benchmark.c
index 7d4c844d5218a82742ff272c74686d50f7f583f6..0d53c935aec3ebbe07d8fcb6266b8f543d77fd52 100644 (file)
@@ -425,15 +425,6 @@ int main(int argc, char **argv) {
     }
 
     do {
-        prepareForBenchmark();
-        c = createClient();
-        if (!c) exit(1);
-        c->obuf = sdscat(c->obuf,"PING\r\n");
-        c->replytype = REPLY_RETCODE;
-        createMissingClients(c);
-        aeMain(config.el);
-        endBenchmark("PING");
-
         prepareForBenchmark();
         c = createClient();
         if (!c) exit(1);
@@ -488,6 +479,15 @@ int main(int argc, char **argv) {
         aeMain(config.el);
         endBenchmark("LPOP");
 
+        prepareForBenchmark();
+        c = createClient();
+        if (!c) exit(1);
+        c->obuf = sdscat(c->obuf,"PING\r\n");
+        c->replytype = REPLY_RETCODE;
+        createMissingClients(c);
+        aeMain(config.el);
+        endBenchmark("PING");
+
         printf("\n");
     } while(config.loop);