码迷,mamicode.com
首页 > Web开发 > 详细

wrk 网站压力测试

时间:2015-11-04 19:09:59      阅读:321      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!