HttpArena
Frameworks

django

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

Django 6.1 as an ASGI application on Uvicorn. URLconf routing and path converters through the Django API, JsonResponse for the JSON payload, GZipMiddleware for compression. Postgres through asyncpg for async-db and fortunes, the latter rendered per request by the Django Template Language from a template file, with the cached loader in front of it.

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.170 of 71227

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,09629,206137.76ms265.10ms5923.5%6.0GiB
ConnectionPipelined4,09655,4831.03s1.61s6168.8%5.7GiB
ConnectionShort-lived4,09629,247135.21ms548.80ms5941.7%6.0GiB
ConcurrencyAsync Delay32,00025,428637.39ms4.00s4949.6%7.9GiB
EfficiencyLatency-10K1,0249,9801795.8us4914.0us1897.6%5.1GiB
EfficiencyLatency-1M1,02430,8359644568.4us19128320.0us5204.5%5.3GiB
EfficiencyLatency-500K/81,0244,9379789288.4us19554304.0us687.1%965MiB
WorkloadJSON Comp4,09624,224165.42ms342.70ms5994.1%7.9GiB
WorkloadJSON Comp16,38421,979561.47ms2.59s5836.9%12.2GiB
WorkloadJSON TLS4,09625,017151.00ms423.43ms6217.7%6.0GiB
Workload8Gbit51227,527935603.5us3001344.0us5152.2%5.3GiB
DatabaseAsync DB1,0243,874232.24ms2.52s1428.2%5.3GiB
DatabaseFortunes1,0245,500139.17ms412.20ms5117.8%5.4GiB

Compared with

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

EntryCompositevs django
fastpysgi-wsgi3148+1286%head to head
flask343+51%head to head
bottle289+27%head to head

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

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