tokio-ws
Engine · Rust · engine: tokio
Hand-rolled WebSocket echo server on raw tokio — no WebSocket library. A current-thread runtime per core with SO_REUSEPORT sharding, a from-scratch RFC 6455 handshake (hand-written SHA-1 + base64) and a manual frame parser/masking + echo write path.
Composite rank
Each profile of a family is worth 100 to the entry that leads it, and the composite is the sum over the family. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| WebSocket | 3 of 9 | 197 |
Every result
Alpha Round, 6 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| WebSocket | Echo | 512 | 4,352,944 | 117us | 213us | 6332.2% | 43MiB |
| WebSocket | Echo | 4,096 | 4,433,246 | 923us | 1.19ms | 6228.7% | 176MiB |
| WebSocket | Echo | 16,384 | 4,143,535 | 3.93ms | 4.67ms | 6399.5% | 590MiB |
| WebSocket | Echo Pipelined | 512 | 65,856,262 | 123us | 238us | 6216.1% | 42MiB |
| WebSocket | Echo Pipelined | 4,096 | 66,930,970 | 978us | 1.32ms | 6240.6% | 173MiB |
| WebSocket | Echo Pipelined | 16,384 | 61,865,334 | 4.22ms | 5.03ms | 6397.0% | 592MiB |
How the benchmark is run · The machine · Add or fix an entry