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: Thu, 30 Apr 2026 05:45:59 UTC
| Library | Version | Throughput (MB/s) | Avg Latency (ms) |
|---|---|---|---|
| coder/websocket | v1.8.14 | 285.77 | 27.09 |
| gobwas/ws | v1.4.0 | 338.94 | 22.83 |
| gorilla/websocket | v1.5.3 | 607.36 | 12.76 |
| lesismal/nbio | v1.6.9 | 400.77 | 19.33 |
| lxzan/gws | v1.9.1 | 705.16 | 11.04 |
Performance Over Time: Throughput (MB/s):
