From 0d3a1f45afb182a5c435ecdfa75148943eeb2012 Mon Sep 17 00:00:00 2001 From: Markus Sintonen Date: Sun, 16 Jun 2024 21:37:22 +0300 Subject: [PATCH] bench --- tests/benchmark/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/benchmark/client.py b/tests/benchmark/client.py index 2d5d6557..1a673892 100644 --- a/tests/benchmark/client.py +++ b/tests/benchmark/client.py @@ -12,7 +12,6 @@ from matplotlib.axes import Axes # type: ignore[import-untyped] import httpcore -from httpcore import AsyncioBackend, AutoBackend PORT = 1234 URL = f"http://localhost:{PORT}/req" @@ -21,7 +20,8 @@ CONCURRENCY = 20 POOL_LIMIT = 100 PROFILE = False -AutoBackend.set_default_backend(AsyncioBackend) +httpcore.AutoBackend.set_default_backend(httpcore.AsyncioBackend) +# httpcore.AutoBackend.set_default_backend(httpcore.AnyIOBackend) def duration(start: float) -> int: