sockudo-ws: Ultra-fast WebSocket library that outperforms uWebSockets

I've been working on a high-performance WebSocket library for Rust and wanted to share it with the community.

Benchmarks against uWebSockets:

- 512 bytes, 100 conn: 232,712 msg/s vs 227,973 msg/s (1.02x faster)

- 1024 bytes, 100 conn: 232,072 msg/s vs 224,498 msg/s (1.03x faster)

- 512 bytes, 500 conn: 231,135 msg/s vs 222,493 msg/s (1.03x faster)

- 1024 bytes, 500 conn: 222,578 msg/s vs 216,833 msg/s (1.02x faster)

Key features:

- SIMD acceleration (AVX2/AVX-512/NEON) for frame masking and UTF-8 validation

- Zero-copy parsing

- permessage-deflate compression

- Split streams for concurrent read/write

- Passes all 517 Autobahn test suite cases

- Simple API with ws.send() style

N-API bindings for Node.js coming soon.

Used in Sockudo (https://github.com/RustNSparks/sockudo), a Pusher-compatible WebSocket server.

GitHub: https://github.com/RustNSparks/sockudo-ws

Feedback welcome!

Posted Dec 29, 2025, 7:57 PM UTC

167
Loading comments…