Remove test.py file containing unused asyncio test code

This commit is contained in:
Nawaz Haider
2026-01-14 13:13:53 +06:00
parent 7508654d00
commit bbfb33829e
-30
View File
@@ -1,30 +0,0 @@
import asyncio
from concurrent.futures import ThreadPoolExecutor
import time
async def test():
return
loop = asyncio.get_event_loop()
times = []
for _ in range(1000):
start = time.time()
with ThreadPoolExecutor(max_workers=2) as executor:
tasks = [
loop.run_in_executor(executor, test),
loop.run_in_executor(
executor,
test,
),
]
await asyncio.gather(*tasks)
end = time.time()
times.append(end - start)
sum(times)