Redis 5 : Use Redis Benchmark2019/11/29 |
It's possible to run a benchmark test with a tool included in Redis package.
|
|
[1] | Use redis-benchmark tool like follows. For others, there are some options to specify number of requests and so on, see [redis-benchmark --help]. |
[root@www ~]# redis-benchmark -h 10.0.0.51 -p 6379 ====== PING_INLINE ====== 100000 requests completed in 1.39 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.68% <= 1 milliseconds 99.90% <= 2 milliseconds 99.97% <= 3 milliseconds 99.97% <= 5 milliseconds 100.00% <= 5 milliseconds 72150.07 requests per second ====== PING_BULK ====== 100000 requests completed in 1.39 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.00% <= 1 milliseconds 99.90% <= 3 milliseconds 99.93% <= 4 milliseconds 99.96% <= 5 milliseconds 100.00% <= 5 milliseconds 71942.45 requests per second ====== SET ====== 100000 requests completed in 1.36 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.74% <= 1 milliseconds 99.97% <= 2 milliseconds 100.00% <= 2 milliseconds 73583.52 requests per second ====== GET ====== 100000 requests completed in 1.38 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.85% <= 1 milliseconds 100.00% <= 1 milliseconds 72306.58 requests per second ====== INCR ====== 100000 requests completed in 1.36 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.98% <= 1 milliseconds 99.90% <= 2 milliseconds 99.94% <= 3 milliseconds 99.95% <= 5 milliseconds 99.98% <= 6 milliseconds 100.00% <= 6 milliseconds 73313.78 requests per second ====== LPUSH ====== 100000 requests completed in 1.38 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.74% <= 1 milliseconds 99.87% <= 3 milliseconds 99.94% <= 4 milliseconds 99.98% <= 5 milliseconds 100.00% <= 5 milliseconds 72621.64 requests per second ====== RPUSH ====== 100000 requests completed in 1.38 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.96% <= 1 milliseconds 99.95% <= 5 milliseconds 99.99% <= 6 milliseconds 100.00% <= 6 milliseconds 72727.27 requests per second ====== LPOP ====== 100000 requests completed in 1.36 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.11% <= 1 milliseconds 100.00% <= 1 milliseconds 73583.52 requests per second ====== RPOP ====== 100000 requests completed in 1.39 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.87% <= 1 milliseconds 99.95% <= 2 milliseconds 100.00% <= 2 milliseconds 71684.59 requests per second ====== SADD ====== 100000 requests completed in 1.35 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.92% <= 1 milliseconds 99.90% <= 2 milliseconds 99.90% <= 3 milliseconds 99.91% <= 4 milliseconds 99.95% <= 5 milliseconds 100.00% <= 5 milliseconds 74239.05 requests per second ====== HSET ====== 100000 requests completed in 1.40 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.79% <= 1 milliseconds 99.97% <= 2 milliseconds 100.00% <= 2 milliseconds 71275.84 requests per second ====== SPOP ====== 100000 requests completed in 1.36 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.05% <= 1 milliseconds 100.00% <= 1 milliseconds 73421.44 requests per second ====== LPUSH (needed to benchmark LRANGE) ====== 100000 requests completed in 1.39 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.74% <= 1 milliseconds 99.95% <= 3 milliseconds 100.00% <= 3 milliseconds 71684.59 requests per second ====== LRANGE_100 (first 100 elements) ====== 100000 requests completed in 1.36 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.97% <= 1 milliseconds 99.93% <= 3 milliseconds 99.95% <= 6 milliseconds 99.95% <= 7 milliseconds 100.00% <= 7 milliseconds 73691.97 requests per second ====== LRANGE_300 (first 300 elements) ====== 100000 requests completed in 1.39 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.64% <= 1 milliseconds 100.00% <= 1 milliseconds 71684.59 requests per second ====== LRANGE_500 (first 450 elements) ====== 100000 requests completed in 1.40 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.78% <= 1 milliseconds 99.95% <= 6 milliseconds 100.00% <= 6 milliseconds 71633.23 requests per second ====== LRANGE_600 (first 600 elements) ====== 100000 requests completed in 1.37 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.73% <= 1 milliseconds 99.90% <= 3 milliseconds 99.95% <= 4 milliseconds 99.99% <= 5 milliseconds 100.00% <= 5 milliseconds 73206.44 requests per second ====== MSET (10 keys) ====== 100000 requests completed in 1.40 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.85% <= 1 milliseconds 100.00% <= 1 milliseconds 71479.62 requests per second |
Sponsored Link |
|