HttpArena
Frameworks

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.

MedalAwardFieldRank
🥉 BronzeTest profileWorkload · 8Gbit3 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.

FamilyRankComposite
HTTP/1.157 of 721487

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,096316,18512.91ms17.10ms6385.9%4.4GiB
ConnectionPipelined4,096373,405172.07ms261.50ms6530.3%4.6GiB
ConnectionShort-lived4,096290,40110.07ms74.60ms6511.4%5.4GiB
ConcurrencyAsync Delay32,000276,68799.18ms183.40ms6444.0%4.9GiB
EfficiencyLatency-10K1,0249,982311.0us547.0us263.7%4.4GiB
EfficiencyLatency-1M1,024328,3966401956.0us14249984.0us6693.6%4.4GiB
EfficiencyLatency-500K/81,02450,5498969804.2us17735680.0us762.0%655MiB
WorkloadJSON Comp4,096134,51527.59ms403.60ms6359.7%4.6GiB
WorkloadJSON Comp16,384132,36738.25ms455.90ms6461.3%4.6GiB
WorkloadJSON TLS4,096218,45618.14ms82.32ms6489.1%4.9GiB
Workload8Gbit51249,407374.7us903.0us1336.0%4.4GiB
WorkloadStatic TLS1,02416,56561.58ms213.39ms6460.7%5.8GiB
DatabaseAsync DB1,02496,58110.15ms69.10ms6570.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.

EntryCompositevs litestar
fastpysgi-wsgi3148+112%head to head
sanic1602+8%head to head
uvicorn1518+2%head to head
fastpysgi-asgi1362-8%head to head
fastapi1270-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