- 仓库地址: [github.com/lxzan/gws](https://github.com/lxzan/gws)
- 压测条件: 1000 conn, 1000*1000 requests, 1000 byte payload, 2*vCPU
- 压测命令: `tcpkali -c 1000 --connect-rate 500 -r 1000 -T 30s -f ./assets/1K.txt --ws 127.0.0.1:8000/connect`
- 测试代码仓库: https://github.com/lxzan/go-websocket-testing
##### 结果如下
```
gws: 5122.536↓, 5095.814↑ Mbps
gorilla: 1542.875↓, 1496.513↑ Mbps
nhooyr: 845.277↓, 814.357↑ Mbps
gobwas: 906.958↓, 909.138↑ Mbps
```
有疑问加站长微信联系(非本文作者)