Redis 5 : Use Redis Benchmark2021/05/28 |
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 2.02 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.79% <= 1 milliseconds 99.90% <= 3 milliseconds 99.90% <= 4 milliseconds 99.94% <= 5 milliseconds 100.00% <= 5 milliseconds 49529.47 requests per second ====== PING_BULK ====== 100000 requests completed in 2.05 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.79% <= 1 milliseconds 99.94% <= 2 milliseconds 99.97% <= 3 milliseconds 100.00% <= 3 milliseconds 48804.29 requests per second ====== SET ====== 100000 requests completed in 2.06 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.74% <= 1 milliseconds 99.96% <= 2 milliseconds 99.97% <= 3 milliseconds 100.00% <= 3 milliseconds 48638.13 requests per second ====== GET ====== 100000 requests completed in 2.06 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.78% <= 1 milliseconds 99.93% <= 2 milliseconds 99.96% <= 3 milliseconds 99.97% <= 4 milliseconds 100.00% <= 4 milliseconds 48590.86 requests per second ====== INCR ====== 100000 requests completed in 2.02 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.74% <= 1 milliseconds 99.89% <= 2 milliseconds 99.96% <= 5 milliseconds 99.96% <= 6 milliseconds 100.00% <= 6 milliseconds 49578.58 requests per second ====== LPUSH ====== 100000 requests completed in 1.86 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.84% <= 1 milliseconds 99.97% <= 2 milliseconds 99.98% <= 3 milliseconds 100.00% <= 3 milliseconds 53908.36 requests per second ====== RPUSH ====== 100000 requests completed in 1.88 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.87% <= 1 milliseconds 100.00% <= 1 milliseconds 53304.90 requests per second ====== LPOP ====== 100000 requests completed in 1.86 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.79% <= 1 milliseconds 100.00% <= 1 milliseconds 53792.36 requests per second ====== RPOP ====== 100000 requests completed in 1.86 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.67% <= 1 milliseconds 99.98% <= 2 milliseconds 99.99% <= 3 milliseconds 99.99% <= 4 milliseconds 100.00% <= 4 milliseconds 53850.30 requests per second ====== SADD ====== 100000 requests completed in 1.89 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.35% <= 1 milliseconds 99.96% <= 2 milliseconds 99.96% <= 3 milliseconds 100.00% <= 3 milliseconds 52966.10 requests per second ====== HSET ====== 100000 requests completed in 1.84 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.79% <= 1 milliseconds 100.00% <= 1 milliseconds 54229.93 requests per second ====== SPOP ====== 100000 requests completed in 1.87 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.93% <= 1 milliseconds 100.00% <= 1 milliseconds 53390.28 requests per second ====== LPUSH (needed to benchmark LRANGE) ====== 100000 requests completed in 1.92 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.38% <= 1 milliseconds 99.97% <= 2 milliseconds 99.99% <= 4 milliseconds 100.00% <= 4 milliseconds 51948.05 requests per second ====== LRANGE_100 (first 100 elements) ====== 100000 requests completed in 1.91 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.57% <= 1 milliseconds 99.99% <= 2 milliseconds 100.00% <= 2 milliseconds 52356.02 requests per second ====== LRANGE_300 (first 300 elements) ====== 100000 requests completed in 1.88 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.53% <= 1 milliseconds 100.00% <= 4 milliseconds 53304.90 requests per second ====== LRANGE_500 (first 450 elements) ====== 100000 requests completed in 1.91 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.33% <= 1 milliseconds 100.00% <= 1 milliseconds 52383.45 requests per second ====== LRANGE_600 (first 600 elements) ====== 100000 requests completed in 2.01 seconds 50 parallel clients 3 bytes payload keep alive: 1 98.91% <= 1 milliseconds 100.00% <= 1 milliseconds 49800.80 requests per second ====== MSET (10 keys) ====== 100000 requests completed in 2.01 seconds 50 parallel clients 3 bytes payload keep alive: 1 99.01% <= 1 milliseconds 100.00% <= 1 milliseconds 49850.45 requests per second |
Sponsored Link |