redis-benchmark 基础4

2022-04-25 00:13:31 浏览数 (1)

指定主机,端口,请求数,并发数测试

代码语言:javascript复制
[root@h102 src]# ./redis-benchmark -h localhost -p 6379 -n 100000 -c 20
====== PING_INLINE ======
  100000 requests completed in 1.61 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.86% <= 1 milliseconds
100.00% <= 2 milliseconds
100.00% <= 2 milliseconds
62111.80 requests per second

====== PING_BULK ======
  100000 requests completed in 1.73 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

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

====== SET ======
  100000 requests completed in 1.80 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.74% <= 1 milliseconds
99.88% <= 2 milliseconds
99.96% <= 3 milliseconds
99.98% <= 4 milliseconds
99.98% <= 6 milliseconds
99.98% <= 10 milliseconds
100.00% <= 10 milliseconds
55463.12 requests per second

====== GET ======
  100000 requests completed in 1.66 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.91% <= 1 milliseconds
99.99% <= 2 milliseconds
100.00% <= 2 milliseconds
60277.27 requests per second

====== INCR ======
  100000 requests completed in 1.76 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.90% <= 1 milliseconds
99.97% <= 2 milliseconds
99.98% <= 4 milliseconds
100.00% <= 5 milliseconds
100.00% <= 5 milliseconds
56721.50 requests per second

====== LPUSH ======
  100000 requests completed in 1.67 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.97% <= 1 milliseconds
100.00% <= 1 milliseconds
59916.12 requests per second

====== LPOP ======
  100000 requests completed in 1.68 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.80% <= 1 milliseconds
99.99% <= 2 milliseconds
100.00% <= 2 milliseconds
59665.87 requests per second

====== SADD ======
  100000 requests completed in 1.70 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.95% <= 1 milliseconds
99.98% <= 2 milliseconds
99.99% <= 3 milliseconds
100.00% <= 3 milliseconds
58927.52 requests per second

====== SPOP ======
  100000 requests completed in 1.74 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.92% <= 1 milliseconds
99.97% <= 2 milliseconds
100.00% <= 3 milliseconds
57339.45 requests per second

====== LPUSH (needed to benchmark LRANGE) ======
  100000 requests completed in 1.93 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.52% <= 1 milliseconds
99.89% <= 2 milliseconds
99.97% <= 3 milliseconds
100.00% <= 3 milliseconds
51679.59 requests per second

====== LRANGE_100 (first 100 elements) ======
  100000 requests completed in 3.38 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

98.35% <= 1 milliseconds
99.73% <= 2 milliseconds
99.89% <= 3 milliseconds
99.93% <= 4 milliseconds
99.96% <= 5 milliseconds
99.97% <= 6 milliseconds
99.97% <= 8 milliseconds
99.97% <= 9 milliseconds
99.99% <= 14 milliseconds
100.00% <= 14 milliseconds
29542.10 requests per second

====== LRANGE_300 (first 300 elements) ======
  100000 requests completed in 7.37 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

93.16% <= 1 milliseconds
99.72% <= 2 milliseconds
99.90% <= 3 milliseconds
99.96% <= 4 milliseconds
100.00% <= 4 milliseconds
13561.16 requests per second

====== LRANGE_500 (first 450 elements) ======
  100000 requests completed in 10.17 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

56.63% <= 1 milliseconds
99.41% <= 2 milliseconds
99.86% <= 3 milliseconds
99.95% <= 4 milliseconds
99.98% <= 5 milliseconds
100.00% <= 6 milliseconds
100.00% <= 7 milliseconds
100.00% <= 7 milliseconds
9828.98 requests per second

====== LRANGE_600 (first 600 elements) ======
  100000 requests completed in 12.77 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

6.56% <= 1 milliseconds
97.97% <= 2 milliseconds
99.68% <= 3 milliseconds
99.89% <= 4 milliseconds
99.96% <= 5 milliseconds
99.96% <= 6 milliseconds
99.98% <= 7 milliseconds
99.99% <= 8 milliseconds
99.99% <= 9 milliseconds
100.00% <= 10 milliseconds
100.00% <= 10 milliseconds
7833.31 requests per second

====== MSET (10 keys) ======
  100000 requests completed in 2.17 seconds
  20 parallel clients
  3 bytes payload
  keep alive: 1

99.35% <= 1 milliseconds
99.94% <= 2 milliseconds
99.96% <= 3 milliseconds
99.99% <= 6 milliseconds
99.99% <= 7 milliseconds
100.00% <= 7 milliseconds
46040.52 requests per second


[root@h102 src]# 

0 人点赞