4 ms·
A no-op API call to FastAPI takes more than that. Even when running on localhost. And FastAPI is one of the better contestants.
by tomas789 3y ago
A no-op API call to FastAPI takes more than that. Even when running on localhost. And FastAPI is one of the better contestants.
- LtWorf 3y agoIf fast api didn't use pydantic (the slowest library in that space), I'm sure it might be more deserving of the name :D Microbenchmark to compare with typedload (which I wrote) and apischema https://ltworf.github.io/typedload/performance.html https://ltworf.github.io/typedload/performance.html Note that pydantic and apischema use .so files, while typedload is just pure python code.
- paulddraper 3y agoA no-op localhost call takes more than 100ms??
- folmar 3y agoOn my mobile i5 10-gen it's 23 ms.