tokio-websockets
Engine · Rust · engine: tokio
High performance, strict, tokio-util based WebSockets implementation.
Achievements
🥇 1 Gold · 🥈 1 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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Within its language | Rust · WebSocket | 1 of 3 |
| 🥈 Silver | Family composite | Composite · WebSocket | 2 of 6 |
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 | 2 of 6 | 2256 |
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 | 4,194,604 | 121us | 281us | 6219.1% | 36MiB |
| WebSocket | Echo | 4,096 | 4,198,339 | 970us | 1.37ms | 6085.2% | 98MiB |
| WebSocket | Echo | 16,384 | 3,956,026 | 4.11ms | 4.77ms | 6432.1% | 337MiB |
| WebSocket | Echo Pipelined | 512 | 20,514,852 | 398us | 894us | 6410.5% | 32MiB |
| WebSocket | Echo Pipelined | 4,096 | 20,757,419 | 3.16ms | 4.58ms | 6594.5% | 103MiB |
| WebSocket | Echo Pipelined | 16,384 | 19,253,492 | 13.18ms | 27.30ms | 5687.7% | 326MiB |
| WebSocket | Echo Short-lived | 512 | 2,171,052 | 135us | 483us | 5328.4% | 56MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,641,801 | 1.02ms | 2.06ms | 5999.5% | 176MiB |
Compared with
The Rust entries around tokio-websockets on the WebSocket composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs tokio-websockets | |
|---|---|---|---|
| wtx | 2448 | +8% | head to head |
| tokio-ws | 1986 | -12% | head to head |
| actix | 1776 | -21% | head to head |
Compare tokio-websockets with any Rust entry · Compare tokio-websockets with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry