Implementation
Django
Django 6.1.3 · Python · Full-stack frameworks · ranked
Scores
| Category | Position | Score | ± |
|---|---|---|---|
| Hello world | 12 | 0.030* | ±15.0% |
| Database | 11–13 | 0.25* | ±32.0% |
| Application | 11–13 | 0.13* | ±17.2% |
| Memory (high-water mark) | 7 | 0.54 | ±0.6% |
| Startup | 1–13 | 0.90 | ±16.2% |
Runner CPUs: EPYC 7763, EPYC 7763, EPYC 7763
Settings
- Runtime
- Python 3.15.2
- Server
- Gunicorn 27 (gthread worker)
- Workers
- BENCH_WORKERS (2) processes x 8 threads
- Database layer
- Django ORM with psycopg 3.3 (C extension); persistent connections (CONN_MAX_AGE), one per thread, 16 in total
- Templates
- Django templates (cached loader)
- Logging
- none (Gunicorn's access log is off; Django logs only warnings and errors)
- Dependency source
- –
- Status
- measured
Notes
- Structure: Python 3.15.2, the newest Django 6.1 supports (FastAPI runs 3.14.10)
Application endpoints: mechanisms
- Validation
- <int:id> path converter (404); Django forms for the query string (Form(request.GET)), the JSON body (Form(json.loads(body)), plus a JSON integer check) and the form (Form(request.POST)): 422; malformed JSON 400
- CSRF
- token (built-in): CsrfViewMiddleware: secret in the csrftoken cookie, masked csrfmiddlewaretoken field, Origin checked when present; 403
- Session store
- postgresql (built-in): django.contrib.auth (LoginView, AuthenticationMiddleware) with the database session backend (django_session); custom user model on users, BCryptPasswordHasher
Tier 1 endpoints
| Endpoint | req/s | vs Axum | Efficiency (req/CPU-s) | p99 (ms) | Errors | Limits |
|---|---|---|---|---|---|---|
| /text | 3,700 (3,548–3,796) | 0.03 | 1,851 | 88.80 | 0 | |
| /json | 3,574 (3,430–3,682) | 0.03 | 1,789 | 90.44 | 0 | |
| /db-single | 1,873 (1,775–1,916) | 0.15 | 937 | 94.20 | 0 | |
| /html | 3,192 (3,034–3,272) | 0.03 | 1,597 | 97.27 | 0 | |
| /queries?queries=20 | 234 (222–240) | 0.30 | 117 | 691.01 | 0 | |
| /fortunes | 1,376 (1,297–1,401) | 0.07 | 688 | 134.07 | 0 | |
| GET /world/{id} | 1,669 (1,601–1,693) | 0.14 | 837 | 103.20 | 0 | |
| GET /worlds | 1,207 (1,146–1,224) | 0.12 | 605 | 147.59 | 0 | |
| POST /form | 2,148 (2,026–2,195) | 0.04 | 1,076 | 121.86 | 0 | |
| GET /me | 1,073 (1,010–1,092) | 0.16 | 537 | 166.56 | 0 | |
| /updates?queries=20 | 130 (122–133) | 0.39 | 65 | 1,252.00 | 0 | |
| PUT /world/{id} | 1,179 (1,111–1,204) | 0.12 | 592 | 137.78 | 0 |
Measured versions
django6.1.3gunicorn27.0.1psycopg3.3.9psycopg-c3.3.9python3.15.2
Runner jobs
| Job | CPU model | Rounds | Status |
|---|---|---|---|
| 1 | EPYC 7763 | 5 | measured |
| 2 | EPYC 7763 | 5 | measured |
| 3 | EPYC 7763 | 5 | measured |