redis-benchmark(1)

redis-benchmark1

Benechmark a redis instance

Usage

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

Overview

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.

Options

-h hostname

Server hostname (default 127.0.0.1)

-p port

Server port (default 6379)

-s socket

Server socket (overrides host and port)

-a password

Password for Redis Auth

-c clients

Number of parallel connections (default 50)

-n requests

Total number of requests (default 100000)

-d size

Data size of SET/GET value in bytes (default 2)

-dbnum db

SELECT the specified db number (default 0)

-k boolean

1=keep alive 0=reconnect (default 1)

-r keyspacelen

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.

-P numreq

Pipeline <numreq> requests. Default 1 (no pipeline).

-q

Quiet. Just show query/sec values

--csv

Ourput in CSV format

-l

Loop. Run the tests forever

-I

Idle mode. Just open N idle connections and wait.

-D

Debug mode. more verbose.

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–8
  2. 9
  3. 10–13

--csv since Debian 9 (Stretch); -P since Debian 9 (Stretch); -a since Debian 9 (Stretch); -dbnum since Debian 9 (Stretch); -s since Debian 9 (Stretch).

Author

redis-benchmark was written by Salvatore Sanfilippo.

This manual page was written by Chris Lamb <[email protected]> for the Debian project (but may be used by others).

From redis-tools 5:8.0.2-3+deb13u2 in Debian 13 (Trixie). Parsed by carta from the page's man source.