HttpArena
Frameworks

sanic

Flagship · Python · tuned configuration · completeness 4/4

Sanic 25.3 on its own server with uvloop and httptools, one worker per core through the Sanic worker manager. Routing through the Sanic router, JSON through the ujson response, streamed uploads. Sanic ships no compression middleware, so gzip is hand-rolled in a response middleware, hence tuned.

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.168 of 931630

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,096611,7375.10ms6.42ms6380.3%1.6GiB
ConnectionPipelined4,0961,372,14328.00ms50.70ms6346.4%1.6GiB
ConnectionShort-lived4,096523,3662.13ms5.10ms6391.0%1.6GiB
ConcurrencyAsync Delay32,000684,06621.45ms47.90ms5674.3%2.1GiB
EfficiencyLatency-10K1,0249,982193.4us305.0us144.8%1.9GiB
EfficiencyLatency-1M1,024638,7713142220.9us10530816.0us6505.0%1.9GiB
EfficiencyLatency-500K/81,02495,9736874418.4us15314944.0us767.9%343MiB
WorkloadJSON Comp4,096172,83612.26ms33.20ms6368.1%1.6GiB
WorkloadJSON Comp16,384169,30520.02ms95.10ms6065.9%1.7GiB

Compared with

The Python entries around sanic on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs sanic
fastpysgi-wsgi3148+93%head to head
aiohttp2072+27%head to head
blackbull1658+2%head to head
starlette1624-0%head to head
uvicorn1518-7%head to head

Compare sanic with any Python entry · Compare sanic with any entry, in any language · Every Python entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry