redis之benchmark工具:benchmark是redis自带的性能测试工具

从本篇文章·开始,博主将开始对redis的探索,今天的咱们先来聊聊benchmark性能测试工具,通过此工具来检查以下redis的读写能能力以及环境问题。通过此工具可以让我们更清楚的认识到redis具有怎样的能力,是否要进行其他的配置例如:服务器等。可以更好的处理数据的读写能力。

 

 语法格式

redis-benchmark [参数] [参数值]

位置:位于bin文件下,在生成的bin文件中

 模拟性能测试:

指定100000请求数,100 并发连接数

命令

./redis-benchmark -h localhost -p 6379 -c 100 -n 100000

执行命令

 关于返回值进行讲解

===== PING_INLINE ======                                                   
  100000 requests completed in 1.49 seconds    100000请求需要的时间
  100 parallel clients                                             100并发数量
  3 bytes payload                                                  每次写入3个字节数
  keep alive: 1                                                        1个服务器
  host configuration "save": 3600 1 300 100 60 10000 持久化方式默认开启的规则
  host configuration "appendonly": no AOF持久化方式未开启
  multi-thread: no 多线程未开启

下面则是执行该测试需要的时间才能够完成

0.000% <= 0.591 milliseconds (cumulative count 6)
50.000% <= 1.055 milliseconds (cumulative count 50009)
75.000% <= 1.271 milliseconds (cumulative count 75671)
87.500% <= 1.375 milliseconds (cumulative count 88120)
93.750% <= 1.431 milliseconds (cumulative count 94440)
96.875% <= 1.479 milliseconds (cumulative count 96998)
98.438% <= 1.583 milliseconds (cumulative count 98470)
99.219% <= 1.703 milliseconds (cumulative count 99241)
99.609% <= 1.975 milliseconds (cumulative count 99614)
99.805% <= 2.391 milliseconds (cumulative count 99805)
99.902% <= 2.719 milliseconds (cumulative count 99903)
99.951% <= 2.959 milliseconds (cumulative count 99952)
99.976% <= 3.119 milliseconds (cumulative count 99976)
99.988% <= 3.231 milliseconds (cumulative count 99988)
99.994% <= 3.311 milliseconds (cumulative count 99994)
99.997% <= 3.343 milliseconds (cumulative count 99997)
99.998% <= 3.375 milliseconds (cumulative count 99999)
99.999% <= 3.399 milliseconds (cumulative count 100000)
100.000% <= 3.399 milliseconds (cumulative count 100000)
 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不想睡醒的梦

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值