Tag: concurrency
-
asyncio vs threading vs multiprocessing: Real Latency
Compare asyncio, threading, and multiprocessing performance with real benchmarks. Find out which concurrency model wins for I/O vs CPU workloads.
-
Coroutines vs Threading vs Multiprocessing: 10k Requests
Compare Python coroutines vs threading vs multiprocessing for 10k requests. See which wins on speed, CPU usage, and when to use each approach.
-
Python GIL vs Free-Threading: 3.13t CPU Benchmark
Python 3.13t free-threading delivers 5.6x CPU speedup vs GILโbut single-threaded code is 17% slower. Real benchmark results and when to switch.
-
asyncio.gather vs as_completed vs TaskGroup: 3 Patterns
gather() killed 49 successful API calls when one failed. Here's when to use as_completed() and TaskGroup instead โ with real latency numbers.
-
Python 3.13 Free-Threading: GIL Removal Benchmarks
Python 3.13 free-threading removes the GIL for real parallel CPU execution. Benchmarks, compatibility gotchas, when it beats multiprocessing.