uio-ws
Experimental · Go · engine: uio · standard configuration
uws WebSocket echo on uio: the RFC 6455 handshake and frame parser run in the connection's own I/O task on uio's edge-triggered event loops, one per CPU, so each message is parsed from the buffer its task read into and echoed from that task with no goroutine per connection; a read round's replies leave coalesced in one sendmsg, and a send the socket refuses is finished by the next write turn without pausing the read. A SO_REUSEPORT listener group puts each upgrade on the loop that runs its connection. uio defaults otherwise.
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, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| WebSocket | 11 of 21 | 2484 |
Every result
Alpha Round, 8 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 | 3,460,527 | 147us | 260us | 6561.1% | 47MiB |
| WebSocket | Echo | 4,096 | 3,693,055 | 1.10ms | 13.20ms | 6521.8% | 73MiB |
| WebSocket | Echo | 16,384 | 3,578,548 | 4.53ms | 48.00ms | 6522.0% | 156MiB |
| WebSocket | Echo Pipelined | 512 | 51,867,254 | 157us | 269us | 6391.1% | 50MiB |
| WebSocket | Echo Pipelined | 4,096 | 54,415,846 | 1.16ms | 17.50ms | 6564.5% | 73MiB |
| WebSocket | Echo Pipelined | 16,384 | 52,468,675 | 4.87ms | 56.90ms | 6191.0% | 163MiB |
| WebSocket | Echo Short-lived | 512 | 1,869,683 | 181us | 776us | 5782.4% | 66MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,034,053 | 1.33ms | 12.00ms | 5632.3% | 100MiB |
Compared with
The Go entries around uio-ws on the WebSocket composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs uio-ws | |
|---|---|---|---|
| fnet-ws | 2717 | +9% | head to head |
| fib | 2524 | +2% | head to head |
| fiber | 1564 | -37% | head to head |
| go-websocket | 257 | -90% | head to head |
Compare uio-ws with any Go entry · Compare uio-ws with any entry, in any language · Every Go entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry