1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-10 00:15:49 +02:00

redis-benchmark: add page (#8962)

This commit is contained in:
Ein Verne 2022-10-16 13:19:13 +08:00 committed by GitHub
parent 892b22dd4e
commit e92b38d07d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,32 @@
# redis-benchmark
> A tool to benchmark a Redis server.
> More information: <https://redis.io/docs/reference/optimization/benchmarks/>.
- Run full benchmark:
`redis-benchmark`
- Run benchmark on a specific Redis server:
`redis-benchmark -h {{host}} -p {{port}} -a {{password}}`
- Run a subset of tests with default 100000 requests:
`redis-benchmark -h {{host}} -p {{port}} -t {{set,lpush}} -n {{100000}}`
- Run with a specific script:
`redis-benchmark -n {{100000}} script load "{{redis.call('set', 'foo', 'bar')}}"`
- Run benchmark by using 100000 [r]andom keys:
`redis-benchmark -t {{set}} -r {{100000}}`
- Run benchmark by using a [P]ipelining of 16 commands:
`redis-benchmark -n {{1000000}} -t {{set,get}} -P {{16}}`
- Run benchmark [q]uietly and only show query per seconds result:
`redis-benchmark -q`