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())