HttpArena
Frameworks

fastapi

Flagship · Python · engine: uvicorn · standard configuration · completeness 4/4

FastAPI async web framework on Uvicorn (uvloop)

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.158 of 711286

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,096298,66413.66ms21.30ms6502.1%4.9GiB
ConnectionPipelined4,096343,195187.01ms261.60ms6375.1%5.0GiB
ConnectionShort-lived4,096273,92910.52ms79.20ms6328.2%6.2GiB
ConcurrencyAsync Delay32,000190,420160.33ms284.60ms6138.4%6.0GiB
EfficiencyLatency-10K1,0249,982331.9us590.0us274.3%4.9GiB
EfficiencyLatency-1M1,024301,3306756142.8us14585856.0us6348.5%4.9GiB
EfficiencyLatency-500K/81,02445,7589076030.2us17948672.0us725.7%700MiB
WorkloadJSON Comp4,096101,17836.47ms537.40ms6450.8%5.1GiB
WorkloadJSON Comp16,38498,95998.36ms717.50ms6439.6%5.2GiB
WorkloadJSON TLS4,096133,48929.72ms131.52ms6229.7%5.1GiB
Workload8Gbit51249,117374.3us903.0us1310.5%4.9GiB
WorkloadStatic TLS1,02422,71145.14ms171.42ms6657.3%5.5GiB
DatabaseAsync DB1,02475,93012.43ms296.70ms6306.9%5.1GiB

Compared with

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

EntryCompositevs fastapi
fastpysgi-wsgi3148+145%head to head
litestar1504+17%head to head
fastpysgi-asgi1362+6%head to head
robyn892-31%head to head
slimeweb865-33%head to head

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

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