We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d56992 commit 28148edCopy full SHA for 28148ed
pyperformance/data-files/benchmarks/bm_fastapi/run_benchmark.py
@@ -55,7 +55,8 @@ def bench_fastapi(loops):
55
56
async def run_benchmark():
57
server_task = asyncio.create_task(server.serve())
58
- await asyncio.sleep(0.5)
+ while not server.started:
59
+ await asyncio.sleep(0.01)
60
61
async with httpx.AsyncClient() as client:
62
t0 = pyperf.perf_counter()
0 commit comments