mirror of
https://github.com/tanrax/python-api-frameworks-benchmark
synced 2026-01-09 23:03:37 +01:00
- Added DRF implementation with identical endpoints - Updated benchmark scripts to include DRF (port 8005) - Ran comprehensive benchmarks with all 5 frameworks - Updated documentation and results - Generated new comparison graphs Results show Django Bolt leading in all endpoints, with DRF showing lowest JSON performance but competitive DB performance.
17 lines
470 B
Python
17 lines
470 B
Python
"""URL configuration for Django benchmark."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from django.urls import path
|
|
|
|
from django_project.ninja_api import api
|
|
from django_project import drf_api
|
|
|
|
urlpatterns = [
|
|
path("ninja/", api.urls),
|
|
path("drf/json-1k", drf_api.json_1k, name="drf-json-1k"),
|
|
path("drf/json-10k", drf_api.json_10k, name="drf-json-10k"),
|
|
path("drf/db", drf_api.db_read, name="drf-db"),
|
|
path("drf/slow", drf_api.slow, name="drf-slow"),
|
|
]
|