首页 > Web开发 > 详细

wrk 网站压力测试

时间:2015-11-04 19:09:35      阅读:323      评论:0      收藏:0      [点我收藏+]

下载安装 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秒

wrk 网站压力测试

原文:http://www.cnblogs.com/adjk/p/4936754.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!