redis-benchmark
TLDR
Run default benchmark
SYNOPSIS
redis-benchmark [-h host] [-p port] [-c clients] [-n requests] [options]
DESCRIPTION
redis-benchmark measures Redis server performance. It simulates clients running various commands.
Multiple commands are tested by default. SET, GET, INCR, LPUSH, and others.
Concurrency tests parallel connections. Higher client counts stress the server more.
Pipelining batches requests. This tests throughput without network round-trip latency.
Data size affects memory and network. Larger payloads test different bottlenecks.
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)


