Redis 5 : Redis Benchmark を利用する2019/11/29 |
Redis パッケージに含まれるベンチマークツールを利用すると Redis サーバーのベンチマークを計測することができます。
|
|
[1] | 計測対象のノードを指定して計測します。 他にもオプション指定することでリクエスト数等、細かな調整が可能です。 オプションは [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 |