Go WebSocket Library Comparison
Libraries Benchmarked:
- https://github.com/gorilla/websocket
- https://github.com/lxzan/gws
- https://github.com/gobwas/ws
- https://github.com/lesismal/nbio
- https://github.com/coder/websocket
Latest Benchmark Results:
Last Updated: Mon, 02 Feb 2026 04:38:31 UTC
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
|---|---|---|---|
| coder/websocket | v1.8.14 | 224.42 | 34.44 |
| gobwas/ws | v1.4.0 | 278.16 | 27.81 |
| gorilla/websocket | v1.5.3 | 511.76 | 15.13 |
| lesismal/nbio | v1.6.8 | 345.64 | 22.38 |
| lxzan/gws | v1.8.9 | 586.12 | 13.28 |
Performance Over Time: Throughput (MB/s):
