redis-benchmark Command Examples

Benchmark a Redis server. More information: https://redis.io/docs/latest/operate/oss_and_stack/management/optimization/benchmarks/.

redis-benchmark

redis-benchmark -h {{host}} -p {{port}} -a {{password}}

redis-benchmark -h {{host}} -p {{port}} -t {{set,lpush}} -n {{100000}}

redis-benchmark -n {{100000}} script load "{{redis.call('set', 'foo', 'bar')}}"

redis-benchmark -t {{set}} -r {{100000}}

redis-benchmark -n {{1000000}} -t {{set,get}} -P {{16}}

redis-benchmark -q