
FastAPI `def` vs `async def`: When Your Endpoint Blocks Everything
Ten concurrent 0.5 s sleeps: async def + time.sleep took 5016.7 ms and made /ping sit at p50 450.7 ms. Plain def and await asyncio.sleep both finished around 0.5 s with /ping under 2 ms.










