Speeding up CPU-bound and IO-bound operations with multiprocessing, threading, and AsyncIO
Blog post: Parallelism, Concurrency, and AsyncIO in Python - by example
- Fork/Clone
- Create and activate a virtual environment
- Install the dependencies
$ python io-bound_sync.py
$ python io-bound_concurrent_1.py
$ python io-bound_concurrent_2.py
$ python io-bound_concurrent_3.py
$ python cpu-bound_sync.py
$ python cpu-bound_parallel_1.py
$ python cpu-bound_parallel_2.py