summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-11-28 09:23:39 +0100
committerantirez <antirez@gmail.com>2014-11-28 09:23:39 +0100
commit640d30c5271059e24e029cb34c9bd9085a0bd943 (patch)
treeb54e75e5af60644a3c7d32e7fde89ebaa3b7ad24
parent10c35b584edb9534240a99b82721fd90847120fc (diff)
downloadredis-640d30c5271059e24e029cb34c9bd9085a0bd943.tar.gz
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.
-rw-r--r--src/redis-benchmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c
index 9b86b25d3..76c755dd2 100644
--- a/src/redis-benchmark.c
+++ b/src/redis-benchmark.c
@@ -555,7 +555,7 @@ usage:
" -s <socket> Server socket (overrides host and port)\n"
" -a <password> Password for Redis Auth\n"
" -c <clients> Number of parallel connections (default 50)\n"
-" -n <requests> Total number of requests (default 10000)\n"
+" -n <requests> Total number of requests (default 100000)\n"
" -d <size> Data size of SET/GET value in bytes (default 2)\n"
" -dbnum <db> SELECT the specified db number (default 0)\n"
" -k <boolean> 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);