Skip to content

facebookexperimental/free-threading-benchmarking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4,303 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Faster CPython Benchmark Infrastructure

πŸ”’ ▢️ START A BENCHMARK RUN

Results

Here are some recent and important revisions. πŸ‘‰ Complete list of results.

linux x86_64 (vultr)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2026-03-15 Fidget-Spinner/resume_tracing 2e9b980 (JIT) 1.143x ↑
πŸ“„πŸ“ˆ
1.105x ↑
πŸ“„πŸ“ˆ
1.005x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-15 Fidget-Spinner/resume_tracing 62ea35e (JIT) 1.133x ↑
πŸ“„πŸ“ˆ
1.095x ↑
πŸ“„πŸ“ˆ
1.008x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-15 python/e167e06f8c6b24f7b54e e167e06 (JIT) 1.137x ↑
πŸ“„πŸ“ˆ
1.099x ↑
πŸ“„πŸ“ˆ
2026-03-14 python/788c3291172b55efa7cf 788c329 (NOGIL) 1.022x ↓
πŸ“„πŸ“ˆ
1.055x ↓
πŸ“„πŸ“ˆ
1.092x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-14 python/788c3291172b55efa7cf 788c329 (JIT) 1.143x ↑
πŸ“„πŸ“ˆ
1.105x ↑
πŸ“„πŸ“ˆ
1.060x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-14 python/788c3291172b55efa7cf 788c329 (CLANG) 1.129x ↑
πŸ“„πŸ“ˆ
1.091x ↑
πŸ“„πŸ“ˆ
1.052x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-14 python/788c3291172b55efa7cf 788c329 1.071x ↑
πŸ“„πŸ“ˆ
1.035x ↑
πŸ“„πŸ“ˆ
2026-03-13 python/3c38feb2a21aacdb009e 3c38feb (NOGIL) 1.022x ↓
πŸ“„πŸ“ˆ
1.055x ↓
πŸ“„πŸ“ˆ
1.093x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-13 python/3c38feb2a21aacdb009e 3c38feb 1.073x ↑
πŸ“„πŸ“ˆ
1.037x ↑
πŸ“„πŸ“ˆ
2026-03-13 Fidget-Spinner/resume_tracing 400bdcb (JIT) 1.137x ↑
πŸ“„πŸ“ˆ
1.098x ↑
πŸ“„πŸ“ˆ
1.000x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-12 python/08a018ebe0d673e9c352 08a018e (NOGIL) 1.017x ↓
πŸ“„πŸ“ˆ
1.050x ↓
πŸ“„πŸ“ˆ
1.087x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-12 python/08a018ebe0d673e9c352 08a018e 1.071x ↑
πŸ“„πŸ“ˆ
1.035x ↑
πŸ“„πŸ“ˆ
2026-03-12 python/0adc7289c3ab097b5608 0adc728 (JIT) 1.136x ↑
πŸ“„πŸ“ˆ
1.098x ↑
πŸ“„πŸ“ˆ
2026-03-11 python/d19de375a204c74ab5f3 d19de37 (NOGIL) 1.026x ↓
πŸ“„πŸ“ˆ
1.058x ↓
πŸ“„πŸ“ˆ
1.095x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-11 python/d19de375a204c74ab5f3 d19de37 1.071x ↑
πŸ“„πŸ“ˆ
1.036x ↑
πŸ“„πŸ“ˆ

darwin arm64 (macm4pro)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2026-03-15 Fidget-Spinner/resume_tracing 2e9b980 (JIT) 1.290x ↑
πŸ“„πŸ“ˆ
1.195x ↑
πŸ“„πŸ“ˆ
1.025x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-15 Fidget-Spinner/resume_tracing 62ea35e (JIT) 1.301x ↑
πŸ“„πŸ“ˆ
1.206x ↑
πŸ“„πŸ“ˆ
1.042x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-15 python/e167e06f8c6b24f7b54e e167e06 (JIT) 1.260x ↑
πŸ“„πŸ“ˆ
1.168x ↑
πŸ“„πŸ“ˆ
2026-03-14 python/788c3291172b55efa7cf 788c329 (NOGIL) 1.101x ↑
πŸ“„πŸ“ˆ
1.021x ↑
πŸ“„πŸ“ˆ
1.060x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-14 python/788c3291172b55efa7cf 788c329 (JIT) 1.251x ↑
πŸ“„πŸ“ˆ
1.160x ↑
πŸ“„πŸ“ˆ
1.065x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-14 python/788c3291172b55efa7cf 788c329 (CLANG) 1.183x ↑
πŸ“„πŸ“ˆ
1.097x ↑
πŸ“„πŸ“ˆ
1.011x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-14 python/788c3291172b55efa7cf 788c329 1.171x ↑
πŸ“„πŸ“ˆ
1.086x ↑
πŸ“„πŸ“ˆ
2026-03-13 python/3c38feb2a21aacdb009e 3c38feb (NOGIL) 1.101x ↑
πŸ“„πŸ“ˆ
1.022x ↑
πŸ“„πŸ“ˆ
1.057x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-13 python/3c38feb2a21aacdb009e 3c38feb 1.168x ↑
πŸ“„πŸ“ˆ
1.083x ↑
πŸ“„πŸ“ˆ
2026-03-13 Fidget-Spinner/resume_tracing af09d44 (JIT) 1.287x ↑
πŸ“„πŸ“ˆ
1.193x ↑
πŸ“„πŸ“ˆ
1.037x ↑
πŸ“„πŸ“ˆπŸ§ 
2026-03-12 python/0adc7289c3ab097b5608 0adc728 (JIT) 1.244x ↑
πŸ“„πŸ“ˆ
1.153x ↑
πŸ“„πŸ“ˆ
2026-03-11 python/d19de375a204c74ab5f3 d19de37 (NOGIL) 1.105x ↑
πŸ“„πŸ“ˆ
1.024x ↑
πŸ“„πŸ“ˆ
1.057x ↓
πŸ“„πŸ“ˆπŸ§ 
2026-03-11 python/d19de375a204c74ab5f3 d19de37 1.169x ↑
πŸ“„πŸ“ˆ
1.084x ↑
πŸ“„πŸ“ˆ

* indicates that the exact same versions of pyperformance was not used.

Longitudinal speed improvement

Improvement of the geometric mean of key merged benchmarks, computed with pyperf compare. The results have a resolution of 0.01 (1%).

Configuration speed improvement

Documentation

Running benchmarks from the GitHub web UI

Visit the πŸ”’ benchmark action and click the "Run Workflow" button.

The available parameters are:

  • fork: The fork of CPython to benchmark. If benchmarking a pull request, this would normally be your GitHub username.
  • ref: The branch, tag or commit SHA to benchmark. If a SHA, it must be the full SHA, since finding it by a prefix is not supported.
  • machine: The machine to run on. One of linux-amd64 (default), windows-amd64, darwin-arm64 or all.
  • benchmark_base: If checked, the base of the selected branch will also be benchmarked. The base is determined by running git merge-base upstream/main $ref.
  • pystats: If checked, collect the pystats from running the benchmarks.

To watch the progress of the benchmark, select it from the πŸ”’ benchmark action page. It may be canceled from there as well. To show only your benchmark workflows, select your GitHub ID from the "Actor" dropdown.

When the benchmarking is complete, the results are published to this repository and will appear in the complete table. Each set of benchmarks will have:

  • The raw .json results from pyperformance.
  • Comparisons against important reference releases, as well as the merge base of the branch if benchmark_base was selected. These include
    • A markdown table produced by pyperf compare_to.
    • A set of "violin" plots showing the distribution of results for each benchmark.

The most convenient way to get results locally is to clone this repo and git pull from it.

Running benchmarks from the GitHub CLI

To automate benchmarking runs, it may be more convenient to use the GitHub CLI. Once you have gh installed and configured, you can run benchmarks by cloning this repository and then from inside it:

gh workflow run benchmark.yml -f fork=me -f ref=my_branch

Any of the parameters described above are available at the commandline using the -f key=value syntax.

Collecting Linux perf profiling data

To collect Linux perf sampling profile data for a benchmarking run, run the _benchmark action and check the perf checkbox. Follow this by a run of the _generate action to regenerate the plots.

License

This repo is licensed under the BSD 3-Clause License, as found in the LICENSE file.

About

Benchmark results for free-threaded builds of Python

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors