redis-benchmark
Benchmark Redis server performance
TLDR
Run default benchmark
SYNOPSIS
redis-benchmark [-h host] [-p port] [-c clients] [-n requests] [options]
DESCRIPTION
redis-benchmark measures Redis server performance by simulating multiple clients concurrently executing various commands. By default it tests a standard set of operations including SET, GET, INCR, LPUSH, LPOP, and others, reporting requests per second for each command type.
The -c flag controls the number of concurrent client connections, while -n sets the total request count. Pipelining with -P batches multiple requests per round-trip, testing raw throughput independent of network latency. The -d flag adjusts the data payload size to benchmark different workload patterns, and -t limits testing to specific commands.
PARAMETERS
-h HOST
Server hostname.-p PORT
Server port.-c N
Concurrent clients.-n N
Total requests.-t TESTS
Test commands.-d SIZE
Data size in bytes.-P N
Pipeline N requests.-q
Quiet, show query/sec.-a PASSWORD
Authentication password.--csv
CSV output.
CAVEATS
Results vary by hardware and network. Local testing eliminates network overhead. Production has different patterns.
HISTORY
redis-benchmark is included with Redis, originally created by Salvatore Sanfilippo in 2009. It provides standardized performance testing for Redis deployments.
SEE ALSO
redis-cli(1), redis-server(1), memtier_benchmark(1)
