siege压力测试工具安装和介绍
来源:互联网 发布:淘宝开店交费吗 编辑:程序博客网 时间:2024/05/29 05:14
前言
最近公司有个项目需要做一个短轮询类推送服务器(推送服务器分为三种,短轮询,长轮询,长连接),用户量不大,但是为了保险起见还是做一下压力测试.用的工具是siege.
目录
- 前言
- 目录
- siege介绍
- siege安装
- siege使用
1.siege介绍
siege介绍 : 百度百科 : siege
输入参数说明:
输出参数说明:
2.siege安装
下载地址 : http://download.joedog.org/siege/ , 我用的版本 : siege-2.70.tar.gz
CaodeMacBook-Pro:local root# tar -xzvf siege-2.70.tar CaodeMacBook-Pro:local root# cd siege-2.70CaodeMacBook-Pro:siege-2.70 root# ./configureCaodeMacBook-Pro:siege-2.70 root# make CaodeMacBook-Pro:siege-2.70 root# make install
安装成功验证 :
CaodeMacBook-Pro:siege-2.70 root# siege -versionsiege: invalid option -- esiege: invalid option -- eSIEGE 2.70Usage: siege [options] siege [options] URL siege -g URLOptions: -V, --version VERSION, prints the version number. -h, --help HELP, prints this section. -C, --config CONFIGURATION, show the current config. -v, --verbose VERBOSE, prints notification to screen. -g, --get GET, pull down HTTP headers and display the transaction. Great for application debugging. -c, --concurrent=NUM CONCURRENT users, default is 10 -i, --internet INTERNET user simulation, hits URLs randomly. -b, --benchmark BENCHMARK: no delays between requests. -t, --time=NUMm TIMED testing where "m" is modifier S, M, or H ex: --time=1H, one hour test. -r, --reps=NUM REPS, number of times to run the test. -f, --file=FILE FILE, select a specific URLS FILE. -R, --rc=FILE RC, specify an siegerc file -l, --log[=FILE] LOG to FILE. If FILE is not specified, the default is used: PREFIX/var/siege.log -m, --mark="text" MARK, mark the log file with a string. -d, --delay=NUM Time DELAY, random delay before each requst between 1 and NUM. (NOT COUNTED IN STATS) -H, --header="text" Add a header to request (can be many) -A, --user-agent="text" Sets User-Agent in requestCopyright (C) 2010 by Jeffrey Fulmer, et al.This is free software; see the source for copying conditions.There is NO warranty; not even for MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE.
3.siege使用
我这边是测试了一个server端的接口并发情况.
- 接口地址是:http://118.212.149.xx:8080/xx/xx/xx
- 请求类型 : POST
- 请求参数 : {“accountId”:”123”,”platform”:”ios”}
- 请求次数 :10次
- 请求并发数量 : 200
请求 : (请求参数说明请参照上文中表格)
CaodeMacBook-Pro:siege-2.70 root# siege "http://118.212.149.xx:8080/xx/xx/xx POST {\"accountId\":\"123\",\"platform\":\"ios\"}" -r 10 -c 200
返回 : (返回参数说明请参照上文中表格)
done.Transactions: 2000 hitsAvailability: 100.00 %Elapsed time: 15.27 secsData transferred: 0.07 MBResponse time: 0.47 secsTransaction rate: 130.98 trans/secThroughput: 0.00 MB/secConcurrency: 61.45Successful transactions: 2000Failed transactions: 0Longest transaction: 8.17Shortest transaction: 0.06
百度百科中也有提到siege测试无法体现出具体细节,我本人也并不是测试人员,后续做并发时候会再找找有没有更好用的测试软件推荐给大家.大家有什么好用的推荐给我哈.
阅读全文
0 0
- siege压力测试工具安装和介绍
- Siege压力测试工具的安装和使用
- Web压力测试工具Siege介绍
- Web压力测试工具Siege介绍
- Web压力测试工具Siege安装
- 压力测试工具 - Siege
- 压力测试工具siege
- Siege - 压力测试工具
- Siege压力测试工具
- web压力测试工具siege和http_load
- Siege压力测试和评测工具
- Siege:压力模拟/测试工具
- web 压力测试工具siege
- Web压力测试工具Siege
- Siege压力测试工具学习
- 压力测试工具Siege详解
- WEB压力测试工具 ab 及 Siege 介绍
- 压力测试工具gatling安装和介绍
- linux用户空间和内核空间延时函数
- rbx2安装
- Android事件分发机制从源码角度解析
- 病人还能生存多久?现在AI能给出更精准的预测
- log4j日志不正常,不在控制台输出
- siege压力测试工具安装和介绍
- 地理数据几何校准
- yii2使用Dao并对接受到的参数进行过滤
- android线程实现后台设置时间自动更新
- Linux 网络连接出错处理
- React 初始
- 研究高德地图回放的感悟
- Android生成PDF文件、webview加载本地PDF或者网络PDF
- Unity3d Ugui 穿透Image点击Button