HttpArena
Frameworks

fastapi

Flagship · Python · engine: uvicorn · standard configuration

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. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.

FamilyRankComposite
HTTP/1.141 of 71190

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline512320,4471.60ms3.24ms6505.3%4.5GiB
ConnectionBaseline4,096314,60512.99ms18.30ms6506.2%4.6GiB
ConnectionPipelined512364,43222.48ms25.70ms6524.6%4.5GiB
ConnectionPipelined4,096359,847178.29ms205.40ms6524.2%4.7GiB
ConnectionShort-lived512284,1811.79ms3.92ms6508.9%5.7GiB
ConnectionShort-lived4,096286,82010.07ms75.80ms6496.5%5.8GiB
WorkloadJSON4,096157,20423.62ms344.30ms6468.8%4.8GiB
WorkloadJSON Comp51293,6955.46ms12.20ms6450.8%4.7GiB
WorkloadJSON Comp4,09693,95339.75ms575.70ms6445.4%4.7GiB
WorkloadJSON Comp16,38492,206117.01ms803.70ms6450.5%4.9GiB
WorkloadJSON TLS4,096135,98229.02ms141.69ms6176.2%4.8GiB
WorkloadUpload322,12514.99ms65.90ms2532.7%4.6GiB
WorkloadUpload2561,536161.36ms811.10ms6271.6%4.8GiB
WorkloadStatic1,02422,05545.97ms160.67ms6702.8%5.3GiB
WorkloadStatic4,09620,911187.91ms472.21ms6765.1%6.8GiB
WorkloadStatic6,80020,315311.88ms771.69ms6712.9%7.9GiB
WorkloadStatic TLS1,02423,39344.03ms183.74ms6572.2%5.2GiB
WorkloadStatic TLS4,09621,410180.73ms535.80ms6482.2%6.1GiB
WorkloadStatic TLS6,80020,124303.81ms803.55ms6717.6%7.7GiB
DatabaseAsync DB1,02476,35112.08ms267.60ms6248.4%4.8GiB
Multi-endpointAPI-42568,44930.24ms143.10ms401.4%494MiB
Multi-endpointAPI-161,02430,21532.92ms153.60ms1616.1%1.7GiB

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