Loading... **开源压力测试工具测试站点并发访问性能。** Siege官网:[http://www.joedog.org/](http://www.joedog.org/) Siege下载:[http://www.joedog.org/pub/siege/siege-latest.tar.gz](http://www.joedog.org/pub/siege/siege-latest.tar.gz) **安装方法:** ``` yum install siege ``` ``` wget http://www.joedog.org/pub/siege/siege-latest.tar.gz tar -zxvf siege-latest.tar.gz cd siege-2.72/ ./configure make make install ``` **使用方法:** ``` siege -c 10 -r 10 http://qq.com ## -c是并发量,-r是重复次数。 ``` **测试结果说明:** > Transactions: 550 hits //完成550次处理 > **Availability: 55.00 % //55.00 % 成功率** > Elapsed time: 31.32 secs //总共用时 > Data transferred: 1.15 MB //共数据传输1.15 MB > Response time: 3.04 secs //显示网络连接的速度 > Transaction rate: 17.56 trans/sec //均每秒完成 17.56 次处理:表示服务器后 > Throughput: 0.04 MB/sec //平均每秒传送数据 > **Concurrency: 53.44 //实际最高并发数** > **Successful transactions: 433 //成功处理次数** > **Failed transactions: 450 //失败处理次数** > Longest transaction: 15.50 //每次传输所花最长时间 > Shortest transaction: 0.42 //每次传输所花最短时间 侵删转自:[压力测试工具](https://blog.csdn.net/qq_21120027/article/details/52516091) 相关链接:[在线并发测试](http://www.toolnb.com/tools-ConcurrentWebTest-Index.html?no_https) 相关链接:[Nginx 限制ip并发数及请求速度](https://blog.csdn.net/m0_37263637/article/details/80764896) --- **一键测试服务器脚本:** ``` curl -Lso- https://feeday.github.io/sh/superbench.sh | bash wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash curl -Lso- https://feeday.github.io/sh/vt.sh | bash wget -qO- https://raw.githubusercontent.com/ToyoDAdoubi/vpstest/master/vpstest.sh | bash ``` 最后修改:2024 年 10 月 07 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏