This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import types | |
import gc | |
ignored_types = ( | |
type, | |
types.FunctionType, | |
types.LambdaType, | |
types.MethodType, | |
types.BuiltinFunctionType, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import time | |
total_tests = 10_000_000 | |
async def test_get_running_loop(): | |
return asyncio.get_running_loop() | |
async def test_get_event_loop(): | |
return asyncio.get_event_loop() |