wrk 网站压力测试

开源代码地址 

https://github.com/wg/wrk.git

下载安装 wrk

[root@aikaiyuan ~]# git clone https://github.com/wg/wrk.git
Initialized empty Git repository in /root/wrk/.git/
remote: Reusing existing pack: 463, done.
remote: Total 463 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (463/463), 976.15 KiB | 686 KiB/s, done.
Resolving deltas: 100% (154/154), done.

安装 wrk

[root@aikaiyuan ~]# cd wrk/
[root@aikaiyuan wrk]# make -j8

压力测试

[root@aikaiyuan wrk]# ./wrk  -t12 -c40 -d30s http://www.aikaiyuan.com/index.html
Running 30s test @ http://www.aikaiyuan.com/index.html
  12 threads and 40 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18s   922.47ms   2.57s    44.85%
    Req/Sec   282.84    398.67     1.50k    72.55%
  96986 requests in 30.00s, 25.94GB read
Requests/sec:   3232.80
Transfer/sec:      0.86GB

-t12  使用 12 个线程

-c       使用 40连接

-d30s 请求30秒

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值