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: Tue, 02 Dec 2025 03:43:01 UTC
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
|---|---|---|---|
| coder/websocket | v1.8.14 | 225.92 | 34.27 |
| gobwas/ws | v1.4.0 | 296.86 | 26.07 |
| gorilla/websocket | v1.5.3 | 459.58 | 16.82 |
| lesismal/nbio | v1.6.7 | 358.59 | 21.60 |
| lxzan/gws | v1.8.9 | 568.05 | 13.70 |
Performance Over Time: Throughput (MB/s):
