Ubuntu 22.04
Sponsored Link

Redis 6 : Redis Benchmark を利用する
2022/09/09
 
Redis パッケージに含まれるベンチマークツールを利用すると Redis サーバーのベンチマークを計測することができます。
[1] 計測対象のノードを指定して計測します。
他にもオプション指定することでリクエスト数等、細かな調整が可能です。
オプションは [redis-benchmark --help] で確認可能です。
root@dlp:~#
redis-benchmark -h 10.0.0.30 -p 6379 -a password

====== PING_INLINE ======
  100000 requests completed in 1.18 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

0.00% <= 0.1 milliseconds
0.02% <= 0.2 milliseconds
64.73% <= 0.3 milliseconds
95.47% <= 0.4 milliseconds
98.94% <= 0.5 milliseconds
99.69% <= 0.6 milliseconds
99.85% <= 0.7 milliseconds
99.86% <= 0.8 milliseconds
99.88% <= 0.9 milliseconds
99.95% <= 1.0 milliseconds
99.95% <= 1.2 milliseconds
99.95% <= 1.3 milliseconds
99.96% <= 1.4 milliseconds
99.97% <= 1.5 milliseconds
99.97% <= 1.6 milliseconds
99.98% <= 1.7 milliseconds
99.98% <= 1.8 milliseconds
99.99% <= 1.9 milliseconds
99.99% <= 2 milliseconds
100.00% <= 2 milliseconds
84961.77 requests per second

====== PING_BULK ======
  100000 requests completed in 1.15 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.93% <= 1 milliseconds
99.95% <= 4 milliseconds
100.00% <= 4 milliseconds
87108.02 requests per second

====== SET ======
  100000 requests completed in 1.65 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.78% <= 1 milliseconds
99.96% <= 2 milliseconds
100.00% <= 2 milliseconds
60679.61 requests per second

====== GET ======
  100000 requests completed in 1.17 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.91% <= 1 milliseconds
100.00% <= 1 milliseconds
85251.49 requests per second

====== INCR ======
  100000 requests completed in 1.59 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.86% <= 1 milliseconds
100.00% <= 1 milliseconds
62814.07 requests per second

====== LPUSH ======
  100000 requests completed in 1.42 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
70571.62 requests per second

====== RPUSH ======
  100000 requests completed in 1.44 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.95% <= 1 milliseconds
100.00% <= 1 milliseconds
69541.03 requests per second

====== LPOP ======
  100000 requests completed in 1.42 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.91% <= 1 milliseconds
99.97% <= 2 milliseconds
100.00% <= 2 milliseconds
70571.62 requests per second

====== RPOP ======
  100000 requests completed in 1.40 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.93% <= 1 milliseconds
100.00% <= 1 milliseconds
71479.62 requests per second

====== SADD ======
  100000 requests completed in 1.16 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.95% <= 1 milliseconds
100.00% <= 1 milliseconds
85910.65 requests per second

====== HSET ======
  100000 requests completed in 1.35 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.90% <= 1 milliseconds
100.00% <= 1 milliseconds
74349.44 requests per second

====== SPOP ======
  100000 requests completed in 1.19 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.95% <= 1 milliseconds
100.00% <= 1 milliseconds
84104.29 requests per second

====== ZADD ======
  100000 requests completed in 1.15 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.95% <= 1 milliseconds
100.00% <= 1 milliseconds
87108.02 requests per second

====== ZPOPMIN ======
  100000 requests completed in 1.17 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.96% <= 1 milliseconds
100.00% <= 1 milliseconds
85397.09 requests per second

====== LPUSH (needed to benchmark LRANGE) ======
  100000 requests completed in 1.51 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.91% <= 1 milliseconds
100.00% <= 1 milliseconds
66225.16 requests per second

====== LRANGE_100 (first 100 elements) ======
  100000 requests completed in 1.65 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.84% <= 1 milliseconds
100.00% <= 2 milliseconds
100.00% <= 2 milliseconds
60569.35 requests per second

====== LRANGE_300 (first 300 elements) ======
  100000 requests completed in 3.61 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

93.30% <= 1 milliseconds
99.96% <= 2 milliseconds
99.98% <= 3 milliseconds
100.00% <= 4 milliseconds
27685.49 requests per second

====== LRANGE_500 (first 450 elements) ======
  100000 requests completed in 5.18 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

0.16% <= 1 milliseconds
99.89% <= 2 milliseconds
99.95% <= 3 milliseconds
99.97% <= 4 milliseconds
100.00% <= 4 milliseconds
19316.21 requests per second

====== LRANGE_600 (first 600 elements) ======
  100000 requests completed in 6.38 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

0.01% <= 1 milliseconds
99.63% <= 2 milliseconds
99.96% <= 3 milliseconds
99.97% <= 4 milliseconds
99.99% <= 5 milliseconds
100.00% <= 6 milliseconds
15681.36 requests per second

====== MSET (10 keys) ======
  100000 requests completed in 1.13 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1
  host configuration "save": 900 1 300 10 60 10000
  host configuration "appendonly": no
  multi-thread: no

99.88% <= 1 milliseconds
99.97% <= 2 milliseconds
100.00% <= 2 milliseconds
88339.23 requests per second
関連コンテンツ