DOKK / manpages / debian 10 / redis-tools / redis-benchmark.1.en
REDIS-BENCHMARK(1) General Commands Manual REDIS-BENCHMARK(1)

redis-benchmark - Benechmark a Redis instance

redis-benchmark [-h <host>] [-p <port>] [-c <clients>] [-n <requests]> [-k <boolean>]

Redis is a key-value database. It is similar to memcached but the dataset is not volatile and other datatypes (such as lists and sets) are natively supported.

Server hostname (default 127.0.0.1)
Server port (default 6379)
Server socket (overrides host and port)
Password for Redis Auth
Number of parallel connections (default 50)
Total number of requests (default 100000)
Data size of SET/GET value in bytes (default 2)
SELECT the specified db number (default 0)
1=keep alive 0=reconnect (default 1)
Use random keys for SET/GET/INCR, random values for SADD Using this option the benchmark will get/set keys in the form mykey_rand000000012456 instead of constant keys, the <keyspacelen> argument determines the max number of values for the random number. For instance if set to 10 only rand000000000000 - rand000000000009 range will be allowed.
Pipeline <numreq> requests. Default 1 (no pipeline).
Quiet. Just show query/sec values
Ourput in CSV format
Loop. Run the tests forever
Idle mode. Just open N idle connections and wait.
Debug mode. more verbose.

redis-benchmark was written by Salvatore Sanfilippo.

This manual page was written by Chris Lamb <lamby@debian.org> for the Debian project (but may be used by others).

June 28, 2010