New Atomic Overhead: The Single-Threaded Performance Tax

GIL-free Python builds introduce an unavoidable performance overhead for single-threaded code, with early Python 3.13 versions showing up to a 40% slowdown and Python 3.14 reducing it to 5-15%, due to new atomic operations for reference counting and finer-grained locking replacing the simpler GIL-protected model.

Sources

Open the full topic