From 6a4973331a216003221d7b3e8b6b7642db317731 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 15 Feb 2017 11:17:02 +0300 Subject: [PATCH] uasyncio: benchmark: Set higher queue length for "medium" test. Following setting the default conservatively low in the module. Surprisingly, heavy test appears to work with new default length of 42. --- uasyncio/benchmark/test_http_server_medium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uasyncio/benchmark/test_http_server_medium.py b/uasyncio/benchmark/test_http_server_medium.py index 7d6f3cbe..77a0ea99 100644 --- a/uasyncio/benchmark/test_http_server_medium.py +++ b/uasyncio/benchmark/test_http_server_medium.py @@ -15,7 +15,7 @@ def serve(reader, writer): import logging #logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.DEBUG) -loop = asyncio.get_event_loop() +loop = asyncio.get_event_loop(80) #mem_info() loop.create_task(asyncio.start_server(serve, "127.0.0.1", 8081, backlog=100)) loop.run_forever()