New article: Parallelism, Concurrency, and AsyncIO in Python - by example
This article looks at how to speed up CPU-bound and IO-bound operations in Python with multiprocessing, threading, and AsyncIO.
For the performance demonstration, the following scenarios are used:
This article looks at how to speed up CPU-bound and IO-bound operations in Python with multiprocessing, threading, and AsyncIO.
For the performance demonstration, the following scenarios are used:
- make an HTTP request to https://httpbin.org/ip, X number of times.
- make the above HTTP request asynchronously with HTTPX.
- calculate the prime numbers, via the Sieve of Eratosthenes method, from two to the provided limit.
Link to GitHub: testdrivenio/parallel-concurrent-examples-python