[7] Redis – Benchmark

28 stycznia 2022 Wyłączono przez Adam [zicherka] Nogły

Możliwe jest przeprowadzenie testu porównawczego za pomocą narzędzia zawartego w pakiecie Redis.

[1] Użyj narzędzia redis-benchmark jak poniżej. W przypadku innych istnieje kilka opcji określania liczby żądań itd., zobacz [redis-benchmark –help].

[root@vlsr01 ~]# redis-benchmark -h 192.168.100.101 -a TajneHasło -p 6379
====== PING_INLINE ======
  100000 requests completed in 1.67 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.3 milliseconds
7.60% <= 0.4 milliseconds
27.33% <= 0.5 milliseconds
51.53% <= 0.6 milliseconds
74.62% <= 0.7 milliseconds
95.07% <= 0.8 milliseconds
99.88% <= 0.9 milliseconds
99.94% <= 1.0 milliseconds
99.95% <= 1.1 milliseconds
99.95% <= 1.4 milliseconds
99.96% <= 1.5 milliseconds
99.97% <= 1.6 milliseconds
99.97% <= 1.7 milliseconds
99.98% <= 1.8 milliseconds
99.99% <= 1.9 milliseconds
100.00% <= 2 milliseconds
59880.24 requests per second
====== PING_BULK ======
  100000 requests completed in 1.63 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% <= 2 milliseconds
100.00% <= 2 milliseconds
61349.70 requests per second
====== SET ======
  100000 requests completed in 1.81 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.73% <= 1 milliseconds
100.00% <= 1 milliseconds
55279.16 requests per second
====== GET ======
  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.95% <= 1 milliseconds
100.00% <= 1 milliseconds
60642.81 requests per second
====== INCR ======
  100000 requests completed in 1.78 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.94% <= 1 milliseconds
99.97% <= 2 milliseconds
100.00% <= 2 milliseconds
56116.72 requests per second
====== LPUSH ======
  100000 requests completed in 1.81 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
100.00% <= 1 milliseconds
55126.79 requests per second
====== RPUSH ======
  100000 requests completed in 1.82 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.94% <= 1 milliseconds
100.00% <= 1 milliseconds
55035.77 requests per second
====== LPOP ======
  100000 requests completed in 1.80 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.99% <= 2 milliseconds
100.00% <= 2 milliseconds
55586.44 requests per second
====== RPOP ======
  100000 requests completed in 1.79 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
55865.92 requests per second
====== SADD ======
  100000 requests completed in 1.67 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.94% <= 1 milliseconds
99.95% <= 2 milliseconds
100.00% <= 2 milliseconds
59844.41 requests per second
====== HSET ======
  100000 requests completed in 1.83 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.80% <= 1 milliseconds
99.93% <= 2 milliseconds
100.00% <= 3 milliseconds
100.00% <= 3 milliseconds
54555.38 requests per second
====== SPOP ======
  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.97% <= 1 milliseconds
100.00% <= 1 milliseconds
60716.46 requests per second
====== ZADD ======
  100000 requests completed in 1.70 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
99.98% <= 2 milliseconds
100.00% <= 2 milliseconds
58997.05 requests per second
====== ZPOPMIN ======
  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.95% <= 1 milliseconds
100.00% <= 1 milliseconds
60716.46 requests per second
====== LPUSH (needed to benchmark LRANGE) ======
  100000 requests completed in 1.82 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
54945.05 requests per second
====== LRANGE_100 (first 100 elements) ======
  100000 requests completed in 2.89 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
45.00% <= 1 milliseconds
99.96% <= 2 milliseconds
100.00% <= 3 milliseconds
100.00% <= 3 milliseconds
34578.15 requests per second
====== LRANGE_300 (first 300 elements) ======
  100000 requests completed in 6.14 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% <= 1 milliseconds
44.85% <= 2 milliseconds
97.24% <= 3 milliseconds
99.97% <= 4 milliseconds
100.00% <= 5 milliseconds
100.00% <= 5 milliseconds
16299.92 requests per second
====== LRANGE_500 (first 450 elements) ======
  100000 requests completed in 8.24 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% <= 1 milliseconds
18.59% <= 2 milliseconds
57.42% <= 3 milliseconds
96.31% <= 4 milliseconds
99.98% <= 5 milliseconds
100.00% <= 6 milliseconds
100.00% <= 6 milliseconds
12134.45 requests per second
====== LRANGE_600 (first 600 elements) ======
  100000 requests completed in 10.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
0.00% <= 1 milliseconds
3.59% <= 2 milliseconds
34.09% <= 3 milliseconds
65.00% <= 4 milliseconds
95.71% <= 5 milliseconds
99.98% <= 6 milliseconds
100.00% <= 7 milliseconds
100.00% <= 7 milliseconds
9666.50 requests per second
====== MSET (10 keys) ======
  100000 requests completed in 2.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
80.22% <= 1 milliseconds
100.00% <= 2 milliseconds
100.00% <= 2 milliseconds
45641.26 requests per second