Mac 搭建 go-stress-testing 压测工具
背景
和上一篇总结的ab压测工具搭建,go-stress-testing搭建更快,简直3秒就可以搞定
开始搭建
# clone 项目
git clone https://github.com/link1st/go-stress-testing.git
# 进入项目目录
cd go-stress-testing
# 运行
go run main.go -c 1 -n 100 -u https://www.baidu.com
demo
参考上一篇的代码
- 执行
go run main.go -c 10 -n 10 -u http://localhost:8082/test - 效果

参考文献
go-stress-testing