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, 01 Dec 2025 04:04:43 UTC
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
|---|---|---|---|
| coder/websocket | v1.8.14 | 225.40 | 34.28 |
| gobwas/ws | v1.4.0 | 292.31 | 26.46 |
| gorilla/websocket | v1.5.3 | 454.77 | 16.96 |
| lesismal/nbio | v1.6.7 | 356.23 | 21.71 |
| lxzan/gws | v1.8.9 | 555.69 | 13.99 |
Performance Over Time: Throughput (MB/s):
