siege的安装
cd /root/
rz
tar -zxvf siege-2.72.tar.gz
cd siege-2.72
./configure
make
make install
创建siegec.config配置文件到当前用户的目录下
安装完成
查看配置文件
/usr/local/siege/bin/siege -C
siege的
使用
参数说明:
-b --benchmark BENCHMARK: no delays between requests.
每次request之间没有延迟,还有一个-d参数加上延迟,类似于一些专业测试工具的思考时间
-r --reps=NUM REPS, number of times to run the test.
每次请求执行多少次
-c --concurrent=NUM CONCURRENT users, default is 10
并发用户
-f --file=FILE FILE, select a specific URLS FILE.
选取URL文件 可在文件内说明要访问的地址
siege结果分析
测试总数 Transactions: 2700 hits
成功率 Availability: 100.00 %
总耗时 Elapsed time: 104.43 secs
传输数据 Data transferred: 132.01 MB
响应耗时 Response time: 3.62 secs
每秒处理请求 Transaction rate: 25.85 trans/sec
吞吐率 Throughput: 1.26 MB/sec
最高并发 Concurrency: 93.71
成功请求数 Successful transactions: 2700
失败请求数
Failed transactions: 0
最长请求时间 Longest transaction: 11.47
最长请求时间
Shortest transaction: 0.00