User-Profile-Image
hankin
  • 5
  • 关于
  • 分类
    • 路由器
    • 电脑相关
    • 游戏相关
    • 未分类
    • 服务器相关
    • 数据库
  • 页面
    • 关于
  • 友链
    • 华夏网盟
Help?

Please contact us on our email for need any support

Support
  • 关于
    首页   ›   服务器相关   ›   正文
服务器相关

linux下Web并发压力测试工具Siege用法

2021-02-22 11:18:00
77  0 0

123.png

Linux下的Web压力测试工具,最常用的应该就是apache的ab了,当然可供选择的有很多。webbench,http_load。看你个人爱好了。不过,最近,用的最顺手的是siege。

siege官网地址http://www.joedog.org/

最新版本3.0.8,下载地址http://download.joedog.org/siege/

1、安装

wget http://download.joedog.org/siege/siege-3.0.8.tar.gz

tar xzvf siege-3.0.8.tar.gz

cd siege-3.0.8

./configure

make && make install

2、准备测试url或者url列表文件

3、跑起

siege https://blog.vicpserver.cn -b -r10 -c400

参数说明:

-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.

4、执行结果

Transactions: 3915 hits
Availability: 97.88 %
Elapsed time: 43.73 secs
Data transferred: 706.12 MB
Response time: 2.90 secs
Transaction rate: 89.53 trans/sec
Throughput: 16.15 MB/sec
Concurrency: 259.48
Successful transactions: 3915
Failed transactions: 85
Longest transaction: 37.70
Shortest transaction: 0.05

评论 (0)

Click here to cancel reply.

欢迎您 游客  

近期文章

  • 用于网速测试的下载测速文件合集
  • docker构建SB镜像
  • pterodactl docker install
  • OpenWRT流量实时监控插件
  • docker部署dify

近期评论

No comments to show.

归档

  • 1 月 2026
  • 8 月 2025
  • 5 月 2025
  • 4 月 2025
  • 3 月 2025
  • 2 月 2025
  • 12 月 2024
  • 4 月 2024
  • 10 月 2023
  • 8 月 2023
  • 4 月 2023
  • 3 月 2023
  • 2 月 2023
  • 10 月 2021
  • 5 月 2021
  • 3 月 2021
  • 2 月 2021

分类

  • 数据库
  • 服务器相关
  • 未分类
  • 游戏相关
  • 电脑相关
  • 路由器
Copyright © 2026
smarty_hankin 主题. Designed by hankin
主页
页面
  • 关于
博主
hkthomas 管理员
136 文章 0 评论 18494 浏览
测试
测试