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: Sat, 30 May 2026 06:03:03 UTC
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
|---|---|---|---|
| coder/websocket | v1.8.14 | 235.43 | 32.88 |
| gobwas/ws | v1.4.0 | 286.55 | 27.05 |
| gorilla/websocket | v1.5.3 | 522.77 | 14.84 |
| lesismal/nbio | v1.6.9 | 347.50 | 22.31 |
| lxzan/gws | v1.9.1 | 600.47 | 12.96 |
Performance Over Time: Throughput (MB/s):
