Skip to content
Meet Mehta

1 article

Concurrency & Performance

Threads, processes, async execution, runtime behavior, and performance trade-offs.

Concurrency & Performance

15 min read

Threads, processes, or asyncio? I measured where each one helps in Python

I timed three slow API calls and three CPU-heavy calculations with threads, processes, and asyncio on my own machine. Here are the numbers, and why each approach helped where it did.

  • #python
  • #concurrency
  • #asyncio
  • #multiprocessing

Type to search.