Visitar URL original
Add FastAPI HTTP request benchmark by savannahostrowski · Pull Request #440 · python/pyperformance · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use polling
  • Loading branch information
savannahostrowski committed Dec 11, 2025
commit 28148ed9429d95534e79a1663bcd9aad0472d19e
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def bench_fastapi(loops):

async def run_benchmark():
server_task = asyncio.create_task(server.serve())
await asyncio.sleep(0.5)
while not server.started:
await asyncio.sleep(0.01)

async with httpx.AsyncClient() as client:
t0 = pyperf.perf_counter()
Expand Down
Loading