Web压力测试工具 http_load

发布时间:2020-06-26 20:21:16 作者:shijiaoliang
来源:网络 阅读:788

简介

  总结特点以及缺点

特点:

缺点:

除了"http_load"Web压力测试工具以外还有比较厉害的 webbench、ab、Siege 等Web测试工具

下载http_load

1 [root@vforbox ~]# cd /usr/local/src2 [root@vforbox src]# wget http://www.acme.com/software/http_load/http_load-14aug2014.tar.gz

安装

Web压力测试工具 http_load

 1 [root@vforbox src]# tar zxvf http_load-14aug2014.tar.gz      //解压当前文件 2 [root@vforbox src]# cd http_load-14aug2014                 //进入解压后的目录 3 [root@vforbox http_load-14aug2014]# make                //执行make,执行完make,会在当前目录生成一个http_load二进制文件。 4 [root@vforbox http_load-14aug2014]# ll 5   total 124 6   -r--r--r--. 1 1544 80 97 Jul 15 2001 FILES 7   -rwxr-xr-x. 1 root root 24400 Aug 22 10:49 http_load 8   -r--r--r--. 1 1544 80 5414 May 20 2005 http_load.1 9   -r--r--r--. 1 1544 80 47394 Aug 14 2014 http_load.c10   -rw-r--r--. 1 1544 80 1682 Aug 11 2014 Makefile11   -r-xr-xr-x. 1 1544 80 1178 Sep 13 2000 make_test_files12   -r--r--r--. 1 1544 80 2397 Aug 2 2014 port.h23   -r--r--r--. 1 1544 80 1035 Mar 12 2006 README14   -r--r--r--. 1 1544 80 7362 Jul 9 2014 timers.c15   -r--r--r--. 1 1544 80 3832 Jul 9 2014 timers.h26   -rw-r--r--. 1 root root 4760 Aug 22 10:49 timers.o17   -r--r--r--. 1 1544 80 163 Aug 13 2014 version.h

Web压力测试工具 http_load

http_load的使用方法

Web压力测试工具 http_load

1 [root@vforbox http_load-14aug2014]# http_load --help2 usage:  http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]3             -parallel N | -rate N [-jitter]4             -fetches N | -seconds N5             url_file6 One start specifier, either -parallel or -rate, is required.7 One end specifier, either -fetches or -seconds, is required.

Web压力测试工具 http_load

  主要参数说明:

1 http://www.cnblogs.com/vforbox/p/4740517.html2 http://www.cnblogs.com/vforbox/p/4754618.html3 http://www.cnblogs.com/vforbox/p/4754405.html

示例分析

Web压力测试工具 http_load

1 [root@vforbox http_load-14aug2014]# ./http_load -p 30 -s 60  url.txt  //表示执行了一个持续时间为60秒的测试,用户进程数为302 1044 fetches, 30 max parallel, 1.88674e+07 bytes, in 60 seconds3 18072.2 mean bytes/connection4 17.4 fetches/sec, 314457 bytes/sec5 msecs/connect: 66.3438 mean, 1066.13 max, 45.677 min6 msecs/first-response: 231.517 mean, 9210.48 max, 69.683 min7 HTTP response codes:8   code 200 -- 1044

Web压力测试工具 http_load

1 [root@vforbox http_load-14aug2014]# http_load -parallel 20 -s 10 url.txt        //同时使用20个用户进程,随机访问url.txt中的网址列表,总共访问10秒2 [root@vforbox http_load-14aug2014]# http_load -rate 60 -f 3000 url.txt          //每秒请求60次,总共请求3000次停止


原文:http://www.cnblogs.com/vforbox/p/4754618.html

推荐阅读:
  1. lamp之调试lamp和ab压力测试
  2. Postman http/https测试工具

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

web 压力 测试工具

上一篇:查询条件倒推日期:当前日期前365天的记录

下一篇:Demo_SWTableViewCell

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》