From 5195f1a6e89e8edb3336f6b573dcb11a7fe1a4f6 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 23 Nov 2026 15:04:49 +0000 Subject: [PATCH] Disable compression in the `asyncio_websockets` benchmark --- .../benchmarks/bm_asyncio_websockets/run_benchmark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyperformance/data-files/benchmarks/bm_asyncio_websockets/run_benchmark.py b/pyperformance/data-files/benchmarks/bm_asyncio_websockets/run_benchmark.py index aa9bbfc1..1256aa06 100644 --- a/pyperformance/data-files/benchmarks/bm_asyncio_websockets/run_benchmark.py +++ b/pyperformance/data-files/benchmarks/bm_asyncio_websockets/run_benchmark.py @@ -35,8 +35,8 @@ async def main() -> None: global stop t0 = pyperf.perf_counter() stop = asyncio.Event() - async with serve(handler, "", 8001): - async with connect("ws://localhost:8001") as ws: + async with serve(handler, "", 8001, compression=None): + async with connect("ws://localhost:8001", compression=None) as ws: await asyncio.gather(*[send(ws) for _ in range(100)]) await stop.wait() return pyperf.perf_counter() - t0