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 its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 87 of 88 | 117 |
Every result
Alpha Round, 10 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 29,206 | 137.76ms | 265.10ms | 5923.5% | 6.0GiB |
| Connection | Pipelined | 4,096 | 55,483 | 1.03s | 1.61s | 6168.8% | 5.7GiB |
| Connection | Short-lived | 4,096 | 29,247 | 135.21ms | 548.80ms | 5941.7% | 6.0GiB |
| Concurrency | Async Delay | 32,000 | 25,428 | 637.39ms | 4.00s | 4949.6% | 7.9GiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 1795.8us | 4914.0us | 1897.6% | 5.1GiB |
| Efficiency | Latency-1M | 1,024 | 30,835 | 9644568.4us | 19128320.0us | 5204.5% | 5.3GiB |
| Workload | JSON Comp | 4,096 | 24,224 | 165.42ms | 342.70ms | 5994.1% | 7.9GiB |
| Workload | JSON Comp | 16,384 | 21,979 | 561.47ms | 2.59s | 5836.9% | 12.2GiB |
| Workload | JSON TLS | 4,096 | 25,017 | 151.00ms | 423.43ms | 6217.7% | 6.0GiB |
| Workload | 8Gbit | 512 | 27,527 | 935603.5us | 3001344.0us | 5152.2% | 5.3GiB |
Compared with
The Python web frameworks around django on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.
| Entry | Composite | vs django | |
|---|---|---|---|
| mq-bridge-py | 1571 | +1245% | head to head |
| bottle | 178 | +53% | head to head |
| flask | 175 | +50% | 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