From ce3fdad710227833551bdc3e20d6f274cfe0fe3a Mon Sep 17 00:00:00 2001 From: monosans Date: Thu, 18 Jan 2024 22:58:54 +0300 Subject: [PATCH] remove test.py --- test.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index b5ab4476a..000000000 --- a/test.py +++ /dev/null @@ -1,21 +0,0 @@ -from __future__ import annotations - -import asyncio -from time import perf_counter - -from aiohttp import ClientSession, DummyCookieJar - - -async def fetch(s): - async with s.get("https://httpbin.io/get") as r: - await r.read() - - -async def m(): - async with ClientSession(cookie_jar=DummyCookieJar()) as s: - start = perf_counter() - await asyncio.gather(*(fetch(s) for _ in range(1000))) - print(perf_counter() - start) - - -asyncio.run(m())