diff --git a/pyperformance/data-files/benchmarks/bm_fastapi/run_benchmark.py b/pyperformance/data-files/benchmarks/bm_fastapi/run_benchmark.py index 3e440325..5857c07b 100644 --- a/pyperformance/data-files/benchmarks/bm_fastapi/run_benchmark.py +++ b/pyperformance/data-files/benchmarks/bm_fastapi/run_benchmark.py @@ -63,7 +63,7 @@ def setup_server(): def bench_fastapi(loops, url): async def run_benchmark(): - async with httpx.AsyncClient() as client: + async with httpx.AsyncClient(limits=httpx.Limits(max_connections=CONCURRENCY)) as client: t0 = pyperf.perf_counter() for i in range(loops):