]> git.saurik.com Git - redis.git/blobdiff - src/redis-benchmark.c
Also force SIGSEGV without HAVE_BACKTRACE
[redis.git] / src / redis-benchmark.c
index b22322f4a70d4da179d89eacfa1589d091ff6f98..28daccd44938f4d21558e44bcae0b049e036bc06 100644 (file)
@@ -267,7 +267,7 @@ static client createClient(const char *cmd, size_t len) {
         }
     }
 
-    redisSetReplyObjectFunctions(c->context,NULL);
+/*    redisSetReplyObjectFunctions(c->context,NULL); */
     aeCreateFileEvent(config.el,c->context->fd,AE_WRITABLE,writeHandler,c);
     listAddNodeTail(config.clients,c);
     config.liveclients++;
@@ -426,10 +426,10 @@ usage:
 " -k <boolean>       1=keep alive 0=reconnect (default 1)\n"
 " -r <keyspacelen>   Use random keys for SET/GET/INCR, random values for SADD\n"
 "  Using this option the benchmark will get/set keys\n"
-"  in the form mykey_rand000000012456 instead of constant\n"
+"  in the form mykey_rand:000000012456 instead of constant\n"
 "  keys, the <keyspacelen> argument determines the max\n"
 "  number of values for the random number. For instance\n"
-"  if set to 10 only rand000000000000 - rand000000000009\n"
+"  if set to 10 only rand:000000000000 - rand:000000000009\n"
 "  range will be allowed.\n"
 " -q                 Quiet. Just show query/sec values\n"
 " --csv              Output in CSV format\n"
@@ -446,6 +446,8 @@ usage:
 "   $ redis-benchmark -t set -n 1000000 -r 100000000\n\n"
 " Benchmark 127.0.0.1:6379 for a few commands producing CSV output:\n"
 "   $ redis-benchmark -t ping,set,get -n 100000 --csv\n\n"
+" Fill a list with 10000 random elements:\n"
+"   $ redis-benchmark -r 10000 -n 10000 lpush mylist ele:rand:000000000000\n\n"
     );
     exit(exit_status);
 }
@@ -490,7 +492,7 @@ int main(int argc, const char **argv) {
     config.numclients = 50;
     config.requests = 10000;
     config.liveclients = 0;
-    config.el = aeCreateEventLoop();
+    config.el = aeCreateEventLoop(1024*10);
     aeCreateTimeEvent(config.el,1,showThroughput,NULL,NULL);
     config.keepalive = 1;
     config.datasize = 3;