import asyncio import util @util.measure_performance_async async def async_compute_task(): await asyncio.gather(*[util.async_compute_task() for _ in range(5)]) @util.measure_performance_async async def async_io_task(): await asyncio.gather(*[util.fetch_url_async(url) for url in util.urls]) def main(): asyncio.run(async_compute_task()) asyncio.run(async_io_task()) if __name__ == "__main__": main()