redis-benchmark 基础5

2022-04-25 00:14:20 浏览数 (1)

使用SET测试来填充1000000keys

代码语言:javascript复制
[root@h102 src]# ./redis-benchmark -t set -n 1000000 -r 100000000
====== SET ======
  1000000 requests completed in 19.13 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

92.04% <= 1 milliseconds
99.47% <= 2 milliseconds
99.84% <= 3 milliseconds
99.91% <= 4 milliseconds
99.93% <= 5 milliseconds
99.93% <= 6 milliseconds
99.94% <= 8 milliseconds
99.95% <= 9 milliseconds
99.98% <= 10 milliseconds
99.98% <= 11 milliseconds
99.99% <= 12 milliseconds
99.99% <= 13 milliseconds
99.99% <= 14 milliseconds
99.99% <= 15 milliseconds
99.99% <= 32 milliseconds
100.00% <= 37 milliseconds
100.00% <= 69 milliseconds
100.00% <= 70 milliseconds
100.00% <= 70 milliseconds
52271.18 requests per second


[root@h102 src]# 

使用CSV的输出来测试本地服务的几种调用

代码语言:javascript复制
[root@h102 src]# ./redis-benchmark -t ping,set,get -n 100000 --csv
"PING_INLINE","59559.26"
"PING_BULK","54555.38"
"SET","37078.23"
"GET","57670.13"
[root@h102 src]# 

0 人点赞