This repository compares asynchronous and synchronous task execution in Python, showcasing performance differences between asyncio
and time.sleep
.
- Allows concurrent execution of tasks.
- Total execution time is close to that of a single task (around 2 seconds).
- Executes tasks sequentially, blocking program execution.
- Total execution time is the sum of all tasks (around 6 seconds).