Redis-benchmark工具使用

来源:互联网 时间:1970-01-01


[[email protected] bin]# redis-benchmark -n 10000 -c 50
====== PING_INLINE ======
  10000 requests completed in 0.21 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

98.01% <= 2 milliseconds
98.18% <= 4 milliseconds
98.52% <= 5 milliseconds
98.70% <= 6 milliseconds
98.73% <= 9 milliseconds
99.01% <= 21 milliseconds
99.05% <= 22 milliseconds
99.51% <= 71 milliseconds
99.56% <= 77 milliseconds
99.60% <= 78 milliseconds
99.68% <= 81 milliseconds
100.00% <= 81 milliseconds
47846.89 requests per second 


redis-benchmark -n 10000 -c 50

向redis服务器发送10000个请求,每个请求附带60个并发客户端


对集合写入测试
10000 requests completed in 0.21 seconds

10000个请求在0.21秒内完成


50 parallel clients

每次请求有60个并发客户端


3 bytes payload

每次写入3个字节的数据


 keep alive: 1

保持一个连接,一台服务器来处理这些请求




相关阅读:
Top