HttpArena
Frameworks

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.

Achievements

🥈 3 Silver. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.

MedalAwardFieldRank
🥈 SilverWithin its languageRust · WebSocket2 of 3
🥈 SilverTest profileWebSocket · Echo2 of 9
🥈 SilverTest profileWebSocket · Echo Pipelined2 of 8

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.

FamilyRankComposite
WebSocket4 of 91986

Every result

Alpha Round, 6 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
WebSocketEcho5124,352,944117us213us6332.2%43MiB
WebSocketEcho4,0964,433,246923us1.19ms6228.7%176MiB
WebSocketEcho16,3844,143,5353.93ms4.67ms6399.5%590MiB
WebSocketEcho Pipelined51265,856,262123us238us6216.1%42MiB
WebSocketEcho Pipelined4,09666,930,970978us1.32ms6240.6%173MiB
WebSocketEcho Pipelined16,38461,865,3344.22ms5.03ms6397.0%592MiB

Compared with

The Rust entries around tokio-ws on the WebSocket composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs tokio-ws
wtx2448+23%head to head
tokio-websockets2256+14%head to head
actix1776-11%head to head
tokio-uring-ws1681-15%head to head

Compare tokio-ws with any Rust entry · Compare tokio-ws with any entry, in any language · Every Rust entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry