
The published GIL entry measured eight CPU-bound threads at 0.98x — slower than one thread — and eight IO-bound threads at 7.90x. Since PEP 779 the free-threaded build is a supported configuration rather than an experiment, which turns the first of those two numbers into a statement about a build flag rather than about Python.
The same harness, unchanged, on both builds of one version: eight threads go from 0.96x to a median of 4.60x. And the seven runs that median came from span 4.42x to 7.66x, which is the part worth the entry.
The same harness, both builds
gil/scaling.py prints whether the GIL is enabled in its first line and needs no change to run
on a free-threaded interpreter. Both builds are CPython 3.15.0rc1 compiled by pyenv on this
machine, so the only difference between them is --disable-gil:
$ python3 experiments/freethread/scaling.py \
~/.pyenv/versions/3.15.0rc1/bin/python3 \
~/.pyenv/versions/3.15.0rc1t/bin/python3
speedup by thread count, median of 7 runs with the two ends beside it
CPU-bound
threads 3.15.0rc1 GIL 3.15.0rc1 free-threaded
median slowest .. fastest median slowest .. fastest
1 1.00x 1.00x .. 1.00x 1.00x 1.00x .. 1.00x
2 1.00x 0.99x .. 1.02x 1.98x 1.98x .. 1.99x
4 1.00x 0.99x .. 1.02x 3.60x 2.80x .. 3.89x
8 0.96x 0.94x .. 0.98x 4.60x 4.42x .. 7.66x
IO-bound
threads 3.15.0rc1 GIL 3.15.0rc1 free-threaded
median slowest .. fastest median slowest .. fastest
1 1.00x 1.00x .. 1.00x 1.00x 1.00x .. 1.00x
2 2.00x 1.97x .. 2.00x 1.99x 1.99x .. 2.01x
4 3.99x 3.95x .. 4.01x 3.96x 3.95x .. 4.02x
8 7.93x 7.87x .. 8.00x 7.92x 7.89x .. 7.97x
Two threads scale 1.98x. Four scale 3.60x. The lock is gone and the arithmetic runs on more than one core, which is the whole claim and it holds.
The eight-thread row is two numbers
The slowest .. fastest columns are there because a median on its own would have hidden the
finding. Run the free-threaded harness on its own, repeatedly, and the eight-thread row does
not scatter around a centre:
$ T=~/.pyenv/versions/3.15.0rc1t/bin/python3; for i in 1 2 3 4 5; do $T gil/scaling.py 2>&1 | sed -n '/CPU-bound/,/^$/p' | grep '^8' ; done
8 0.238s 4.33x
8 0.134s 7.68x
8 0.224s 4.62x
8 0.243s 4.26x
8 0.142s 7.29x
Two clusters, near 4.3x and near 7.5x, with nothing in between them. That is not measurement
noise, which fills the gap; it is two outcomes. Note that each of those five lines is already
the best of five internal repeats — gil/scaling.py takes a minimum, for reasons the published
GIL entry gives — so a run landing at 4.33x is a run where all five internal repeats landed
badly, not one unlucky sample.
The machine is an Apple M4 Pro, and sysctl reports hw.perflevel0.logicalcpu as 8 and
hw.perflevel1.logicalcpu as 4 — eight performance cores and four efficiency cores. Eight
threads landing on the eight performance cores, against eight threads spread across both kinds,
is the shape that fits the two clusters. This entry does not claim to have proved that; it
claims the distribution is bimodal and that any single number quoted from it is a choice of
cluster.
The four-thread row shows the same thing more weakly: median 3.60x with a low of 2.80x. Four threads on a machine with eight fast cores should not have a placement problem at all, and the 0.8x of spread there says the scheduler is making a choice even when it does not have to.
The practical consequence is that a benchmark of this build published as one number is a report of which cluster that run happened to land in. Two teams measuring the same workload on the same hardware can come away with 4.4x and 7.7x and both be reporting honestly.
The control that did not move
The IO half is identical on both builds — 7.93x and 7.92x at eight threads — and that is what
makes the CPU half readable. A thread blocked in time.sleep has already released the lock, so
the GIL was never what limited that row. If it had moved, something other than the lock would
have changed between the two binaries, and the CPU comparison would not be attributable.
The GIL build’s eight-thread CPU row at 0.96x is worth naming plainly: eight threads doing arithmetic finish slower than one thread doing the same total arithmetic. That is not a slowdown from contention over data. It is the cost of passing one lock between eight threads that all want it.
What this licenses
Real parallelism for CPU-bound Python, on this machine, somewhere between 4.4x and 7.7x at eight threads. Not a factor you can put in a capacity plan without measuring your own hardware, because the two clusters here are a property of how the scheduler places threads on two kinds of core.
It licenses nothing about single-threaded cost, which is the next entry, and nothing about which of your operations are still safe without a lock, which is the one after that. A build that makes eight threads four times faster and one thread slower is a trade, and the trade cannot be evaluated from this table alone.
Where to stop
One machine, Apple M4 Pro, macOS, 12 cores in two performance classes. CPython 3.15.0rc1 built twice from the same source by pyenv on 2 September 2026. The final 3.15 is dated 1 October and is not what was measured.
The workload is integer addition in a Python loop — the most favourable possible case for removing the lock, because the threads share nothing. A workload whose threads touch the same objects will pay for the per-object locking that this one never triggers, and nothing here measures that. What it costs when threads do share objects is an operation-by-operation question rather than a scaling one, and the single-threaded side of the trade is not in this table either.
The 0.96x row is the same harness the version-comparison entry ran on 3.10 and 3.15, where it produced 1 and 0.96 — five releases apart, unchanged. The lock is what that measures, and only a build flag moves it.
A median of 4.60x over runs spanning 4.42x to 7.66x is also a reminder that the statistic is a choice. Best-of would report 7.66 here and it would be true and useless.
Nothing here is a Linux or x86_64 number, and the bimodality in particular is a scheduler result that has no reason to reproduce on a machine with one kind of core.
Frequently asked
Why not quote a single speedup?
Because seven runs of the same binary on the same machine produced 4.42x and 7.66x, and a mean of those two describes neither. Publishing 6x here would be inventing a number that no run produced. The range is the measurement.
What causes the two clusters?
The machine has eight performance cores and four efficiency cores, which sysctl reports as hw.perflevel0.logicalcpu 8 and hw.perflevel1.logicalcpu 4. Eight threads landing on the eight performance cores and eight threads spread across both is the shape that fits, and this entry does not go further than saying the observation is consistent with it.
Does the GIL build really get slower with more threads?
Slightly, and consistently: 0.96x at eight threads, with the seven runs between 0.94x and 0.98x. That is the cost of handing the lock around eight ways to do work that only one thread can do at a time. It is the same result the published GIL entry reported, on a newer interpreter.
Is the IO result a disappointment?
It is a control, and it working is what makes the CPU result readable. Threads blocked in sleep release the lock already, so the GIL build was never the limit there. If the IO row had moved, something other than the lock would have changed between the two builds.
Where this came from
Run it yourself — every figure above came out of these:
- freethread/scaling.py — Thread scaling on the free-threaded build against the default one
Read, rather than assumed:


