From 640d30c5271059e24e029cb34c9bd9085a0bd943 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 28 Nov 2014 09:23:39 +0100 Subject: [PATCH] redis-benchmark: default num of requests is now 100000. 10000 completes in a too short time and may easily provide unreliable figures because of tiny duration. --- src/redis-benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 9b86b25d..76c755dd 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -555,7 +555,7 @@ usage: " -s Server socket (overrides host and port)\n" " -a Password for Redis Auth\n" " -c Number of parallel connections (default 50)\n" -" -n Total number of requests (default 10000)\n" +" -n Total number of requests (default 100000)\n" " -d Data size of SET/GET value in bytes (default 2)\n" " -dbnum SELECT the specified db number (default 0)\n" " -k 1=keep alive 0=reconnect (default 1)\n" @@ -635,7 +635,7 @@ int main(int argc, const char **argv) { signal(SIGPIPE, SIG_IGN); config.numclients = 50; - config.requests = 10000; + config.requests = 100000; config.liveclients = 0; config.el = aeCreateEventLoop(1024*10); aeCreateTimeEvent(config.el,1,showThroughput,NULL,NULL);