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