X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/5f5b9840c3d3f2ba6dd2f8c4d177f2bfac6f0d32..111d9959c05ac675bb713da589eb7b08fe876d56:/benchmark.c diff --git a/benchmark.c b/benchmark.c index 7d4c844d..0d53c935 100644 --- a/benchmark.c +++ b/benchmark.c @@ -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);