litestar
Flagship · Python · engine: uvicorn · standard configuration · completeness 4/4
Litestar 2 on uvicorn with uvloop and httptools, one worker per core. Routing and parameter injection through the Litestar API, msgspec JSON serialization, gzip through the Litestar compression config.
Achievements
🥉 1 Bronze. 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 |
|---|---|---|---|
| 🥉 Bronze | Test profile | Workload · 8Gbit | 3 of 84 |
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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 | 72 of 88 | 963 |
Every result
Alpha Round, 11 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 | 316,185 | 12.91ms | 17.10ms | 6385.9% | 4.4GiB |
| Connection | Pipelined | 4,096 | 373,405 | 172.07ms | 261.50ms | 6530.3% | 4.6GiB |
| Connection | Short-lived | 4,096 | 290,401 | 10.07ms | 74.60ms | 6511.4% | 5.4GiB |
| Concurrency | Async Delay | 32,000 | 276,687 | 99.18ms | 183.40ms | 6444.0% | 4.9GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 311.0us | 547.0us | 263.7% | 4.4GiB |
| Efficiency | Latency-1M | 1,024 | 328,396 | 6401956.0us | 14249984.0us | 6693.6% | 4.4GiB |
| Workload | JSON Comp | 4,096 | 134,515 | 27.59ms | 403.60ms | 6359.7% | 4.6GiB |
| Workload | JSON Comp | 16,384 | 132,367 | 38.25ms | 455.90ms | 6461.3% | 4.6GiB |
| Workload | JSON TLS | 4,096 | 218,456 | 18.14ms | 82.32ms | 6489.1% | 4.9GiB |
| Workload | 8Gbit | 512 | 49,407 | 374.7us | 903.0us | 1336.0% | 4.4GiB |
| Workload | Static TLS | 1,024 | 16,565 | 61.58ms | 213.39ms | 6460.7% | 5.8GiB |
Compared with
The Python web frameworks around litestar on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.
| Entry | Composite | vs litestar | |
|---|---|---|---|
| mq-bridge-py | 1571 | +63% | head to head |
| starlette | 1082 | +12% | head to head |
| sanic | 1018 | +6% | head to head |
| fastapi | 860 | -11% | head to head |
| robyn | 607 | -37% | head to head |
Compare litestar with any Python entry · Compare litestar with any entry, in any language · Every Python entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry