websocket压测工具推荐:wsbench
技术  /  管理员 发布于 3星期前   70
wsbench是一个websocket基准测试工具,wsbench提供 IOPS, P50, P90, P99 等指标
支持导出压测结果到 JSON 文件,配合脚本生成图表
帮助列表:
NAME:
wsbench - testing websocket server iops and latency
USAGE:
wsbench [global options] command [command options] [arguments...]
COMMANDS:
echo
broadcast
version
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
导出图表教程
运行语言环境:
go + nodejs
安装依赖:
npm install pm2 -g
go install github.com/lxzan/wsbench@latest
环境变量:
export PATH=$PATH:$GOPATH/bin
进行拉取代码、安装运行
git clone https://github.com/lxzan/go-websocket-testing.git
cd go-websocket-testing
make build
pm2 start ./bin/*
cd frontend
npm install
pm2 start index.js --watch
sh bench.sh
测试程序退出后,访问
http://localhost:8080
更多请查看git源码
https://github.com/lxzan/wsbench
路人 在
php中使用hyperf框架调用讯飞星火大模型实现国内版chatgpt功能示例中评论 教程很详细,如果加个前端chatgpt对话页面就完美了..博主 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 @ mashrdn 多切换几个节点测试,免费ssr是没那么稳..mashrdn 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 V2rayn免费节点添加上去了,youtobe无法打开网页,是怎么回事..张伟 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 3q!有用,不过免费节点隔天就要去git上复制新的导进去..博主 在
科学上网翻墙访问Google , 上外网神器佛跳墙VPN(永久免费)使用流程步骤中评论 该篇教程已不能用了,告知大家,免的老有老铁问我!..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号