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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 41 of 71 | 190 |
Every result
Alpha Round, 22 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 | 512 | 320,447 | 1.60ms | 3.24ms | 6505.3% | 4.5GiB |
| Connection | Baseline | 4,096 | 314,605 | 12.99ms | 18.30ms | 6506.2% | 4.6GiB |
| Connection | Pipelined | 512 | 364,432 | 22.48ms | 25.70ms | 6524.6% | 4.5GiB |
| Connection | Pipelined | 4,096 | 359,847 | 178.29ms | 205.40ms | 6524.2% | 4.7GiB |
| Connection | Short-lived | 512 | 284,181 | 1.79ms | 3.92ms | 6508.9% | 5.7GiB |
| Connection | Short-lived | 4,096 | 286,820 | 10.07ms | 75.80ms | 6496.5% | 5.8GiB |
| Workload | JSON | 4,096 | 157,204 | 23.62ms | 344.30ms | 6468.8% | 4.8GiB |
| Workload | JSON Comp | 512 | 93,695 | 5.46ms | 12.20ms | 6450.8% | 4.7GiB |
| Workload | JSON Comp | 4,096 | 93,953 | 39.75ms | 575.70ms | 6445.4% | 4.7GiB |
| Workload | JSON Comp | 16,384 | 92,206 | 117.01ms | 803.70ms | 6450.5% | 4.9GiB |
| Workload | JSON TLS | 4,096 | 135,982 | 29.02ms | 141.69ms | 6176.2% | 4.8GiB |
| Workload | Upload | 32 | 2,125 | 14.99ms | 65.90ms | 2532.7% | 4.6GiB |
| Workload | Upload | 256 | 1,536 | 161.36ms | 811.10ms | 6271.6% | 4.8GiB |
| Workload | Static | 1,024 | 22,055 | 45.97ms | 160.67ms | 6702.8% | 5.3GiB |
| Workload | Static | 4,096 | 20,911 | 187.91ms | 472.21ms | 6765.1% | 6.8GiB |
| Workload | Static | 6,800 | 20,315 | 311.88ms | 771.69ms | 6712.9% | 7.9GiB |
| Workload | Static TLS | 1,024 | 23,393 | 44.03ms | 183.74ms | 6572.2% | 5.2GiB |
| Workload | Static TLS | 4,096 | 21,410 | 180.73ms | 535.80ms | 6482.2% | 6.1GiB |
| Workload | Static TLS | 6,800 | 20,124 | 303.81ms | 803.55ms | 6717.6% | 7.7GiB |
| Database | Async DB | 1,024 | 76,351 | 12.08ms | 267.60ms | 6248.4% | 4.8GiB |
| Multi-endpoint | API-4 | 256 | 8,449 | 30.24ms | 143.10ms | 401.4% | 494MiB |
| Multi-endpoint | API-16 | 1,024 | 30,215 | 32.92ms | 153.60ms | 1616.1% | 1.7GiB |
How the benchmark is run · The machine · Add or fix an entry