本项目为tcp压测工具,可以对tcp服务端进行压力测试,同时也可以像postman一样对tcp服务端一样进行tcp的接口测试,发送指定的值获取结果,并且支持对结果进行转换。
cd stress-tool
go build -o stress_tool.exe main.go
stress_tool.exe 8080
cd stress-tool
go build -o stress_tool main.go
./stress_tool 8080
浏览器输入 ip:8080 即可访问压测界面
- 创建压测界面用于创建压测任务
- 查看压测任务用于查看压测结果
- TCP返回测试界面用于测试TCP接口
本项目附带一个tcp服务端的模拟程序,接收到什么输入,就会返回什么输出,安装使用教程如下
cd stress-tool/test
go build -o mockTcpServer.exe mockTcpServer.go
mockTcpServer.exe 8888