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 68 |
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 | 57 of 72 | 1487 |
Every result
Alpha Round, 13 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 |
| Efficiency | Latency-500K/8 | 1,024 | 50,549 | 8969804.2us | 17735680.0us | 762.0% | 655MiB |
| 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 |
| Database | Async DB | 1,024 | 96,581 | 10.15ms | 69.10ms | 6570.9% | 4.6GiB |
Compared with
The Python entries around litestar on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs litestar | |
|---|---|---|---|
| fastpysgi-wsgi | 3148 | +112% | head to head |
| sanic | 1602 | +8% | head to head |
| uvicorn | 1518 | +2% | head to head |
| fastpysgi-asgi | 1362 | -8% | head to head |
| fastapi | 1270 | -15% | 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