summaryrefslogtreecommitdiff
path: root/tests/overload.py
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-06-15 23:10:09 -0400
committerbd <bdunahu@operationnull.com>2025-06-15 23:10:09 -0400
commit8844dceadcdeebf67d07656bf45d3ddada3e2b5b (patch)
tree0d4e5204c8091cbf2ecb81437e5e1ab0f72511a1 /tests/overload.py
parentc21e4366fb64130d168150f0ed94293e699eb525 (diff)
Functional monkey-patched EpollSelector, good results
Diffstat (limited to 'tests/overload.py')
-rw-r--r--tests/overload.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/overload.py b/tests/overload.py
deleted file mode 100644
index 9bba9a1..0000000
--- a/tests/overload.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import asyncio
-import time
-
-async def busy_task():
- i = 0
- while i < 100:
- i += 1
- await asyncio.sleep(3.0)
- return 1
-
-async def main():
- tasks = [asyncio.create_task(busy_task()) for i in range(5)]
-
- start_time = time.time()
- try:
- # this is to prevent waiting in 'select' all day,
- # which makes the python intepreter not respond to
- # mini-scalene / SCALENE
- while True:
- if time.time() - start_time > 4.0:
- break
- # print(asyncio.all_tasks())
- await asyncio.sleep(0) # yield
- except KeyboardInterrupt:
- pass
- finally:
- print("Done.")
-
-asyncio.run(main())