uvicorn
Engine · Python · engine: uvloop
An ASGI web server implementation for Python (uvloop)
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 | Test profile | Efficiency · Latency-10K | 1 of 24 |
| 🥈 Silver | Within its language | Python · HTTP/1.1 | 2 of 3 |
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 |
|---|---|---|
| HTTP/1.1 | 21 of 26 | 1518 |
Every result
Alpha Round, 10 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 |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 727,096 | 5.57ms | 6.92ms | 6377.1% | 3.2GiB |
| Connection | Pipelined | 4,096 | 799,828 | 80.22ms | 91.30ms | 6376.6% | 3.4GiB |
| Connection | Short-lived | 4,096 | 588,030 | 5.18ms | 36.70ms | 6283.7% | 5.0GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 197.8us | 313.0us | 160.6% | 3.2GiB |
| Efficiency | Latency-1M | 1,024 | 659,849 | 2963173.9us | 10194944.0us | 6610.5% | 3.2GiB |
| Workload | JSON Comp | 4,096 | 271,388 | 13.58ms | 198.00ms | 6242.7% | 3.6GiB |
| Workload | JSON Comp | 16,384 | 263,652 | 25.95ms | 207.60ms | 6050.8% | 3.6GiB |
| Workload | JSON TLS | 4,096 | 336,946 | 11.76ms | 11.76ms | 6177.3% | 3.5GiB |
| Workload | 8Gbit | 512 | 49,239 | 210.7us | 403.0us | 750.1% | 3.3GiB |
| Database | Async DB | 1,024 | 64,851 | 14.95ms | 364.40ms | 2669.3% | 3.4GiB |
Compared with
The Python entries around uvicorn on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs uvicorn | |
|---|---|---|---|
| fastpysgi-wsgi | 3148 | +107% | head to head |
| sanic | 1630 | +7% | head to head |
| starlette | 1624 | +7% | head to head |
| litestar | 1504 | -1% | head to head |
| fastpysgi-asgi | 1362 | -10% | head to head |
Compare uvicorn with any Python entry · Compare uvicorn with any entry, in any language · Every Python entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry