| Framework | Throughput (Request/Second) |
|---|---|
| Blacksheep | 5,339 |
| Muffin | 5,320 |
| Panther | 5,112 |
| Sanic | 3,660 |
| FastAPI | 3,260 |
| Tornado | 2,081 |
| Bottle | 2,045 |
| Django | 821 |
| Flask | 749 |
- Check Method
- Check Authorization Header
- Read Body
- Read Query Params
- Read Path Variables
- Read Request Payload
- Return All of Them as Json in Response
We used nakabonne/ali for benchmarking
Installation: https://github.com/nakabonne/ali#installation
ali --rate 5500 "http://127.0.0.1:8000/users/2/records/10?name=ali&age=26" --method=PUT -H "Authorization: Token" -H "content-type: application/json" -b "{\"text\": \"hello\"}"We tried to get the best performance from frameworks, If you think you can make them better, your contributions are welcome.