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: Sun, 26 Apr 2026 05:26:52 UTC
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
|---|---|---|---|
| coder/websocket | v1.8.14 | 238.26 | 32.46 |
| gobwas/ws | v1.4.0 | 272.92 | 28.39 |
| gorilla/websocket | v1.5.3 | 492.03 | 15.76 |
| lesismal/nbio | v1.6.9 | 338.89 | 22.83 |
| lxzan/gws | v1.9.1 | 568.40 | 13.69 |
Performance Over Time: Throughput (MB/s):
