需求:需要使用该工具进行接口并发测试, 并发数1000以上
1.下载地址: https://www.apachelounge.com/download/
2.安装:下载好,解压到你自定义的文件夹中
3. 使用: 进入安装目录的bin文件夹下,打开终端,发送post请求:
ab -n 40 -c 20 -p <你放post请求,请求体位置:如 body.txt> -T “application/json” <请求url>
注意:-n发送请求数, -c开启并发数,请求体必须是json字符串,且创建请求体文件时一定要使用pycharm或者node++等编辑器创建,否者会照成请求体读取错误
apache benchmark 下载, 安装, 使用
最新推荐文章于 2024-08-07 14:36:40 发布