Skip to content

facebookexperimental/free-threading-benchmarking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Faster CPython Benchmark Infrastructure

πŸ”’ ▢️ START A BENCHMARK RUN

Results

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

Most recent pystats on main (22a4421)

linux x86_64 (linux)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2025-01-31 python/d89a5f6a6e65511a5f6e d89a5f6 (NOGIL) 1.035x ↓
πŸ“„πŸ“ˆ
1.072x ↓
πŸ“„πŸ“ˆ
1.100x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-31 python/d89a5f6a6e65511a5f6e d89a5f6 1.074x ↑
πŸ“„πŸ“ˆ
1.035x ↑
πŸ“„πŸ“ˆ
2025-01-30 python/10ee2d9d3bcde27c75f1 10ee2d9 1.089x ↑
πŸ“„πŸ“ˆ
1.049x ↑
πŸ“„πŸ“ˆ
2025-01-30 python/10ee2d9d3bcde27c75f1 10ee2d9 (NOGIL) 1.051x ↓
πŸ“„πŸ“ˆ
1.083x ↓
πŸ“„πŸ“ˆ
1.127x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-30 python/a549f439384b4509b256 a549f43 (NOGIL) 1.047x ↓
πŸ“„πŸ“ˆ
1.082x ↓
πŸ“„πŸ“ˆ
1.111x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-30 python/a549f439384b4509b256 a549f43 1.077x ↑
πŸ“„πŸ“ˆ
1.034x ↑
πŸ“„πŸ“ˆ
2025-01-28 python/828b27680f07f1ed8302 828b276 1.030x ↑
πŸ“„πŸ“ˆ
1.008x ↓
πŸ“„πŸ“ˆ
2025-01-28 python/828b27680f07f1ed8302 828b276 (NOGIL) 1.095x ↓
πŸ“„πŸ“ˆ
1.128x ↓
πŸ“„πŸ“ˆ
1.117x ↓
πŸ“„πŸ“ˆπŸ§ 

linux x86_64 (vultr)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2025-01-31 nascheme/gh_129201_gc_mark_pr abfc49a (NOGIL) 1.043x ↓
πŸ“„πŸ“ˆ
1.074x ↓
πŸ“„πŸ“ˆ
1.005x ↑
πŸ“„πŸ“ˆπŸ§ 
2025-01-31 python/54f74b80aef8b581f2b1 54f74b8 (NOGIL) 1.026x ↓
πŸ“„πŸ“ˆ
1.058x ↓
πŸ“„πŸ“ˆ
2025-01-31 python/c3ae5c9e4ad121f8ba60 c3ae5c9 (NOGIL) 1.029x ↓
πŸ“„πŸ“ˆ
1.061x ↓
πŸ“„πŸ“ˆ
1.029x ↑
πŸ“„πŸ“ˆπŸ§ 
2025-01-31 python/31c82c28f927b7e55c7d 31c82c2 (NOGIL) 1.057x ↓
πŸ“„πŸ“ˆ
1.087x ↓
πŸ“„πŸ“ˆ
2025-01-31 python/main d89a5f6 (NOGIL) 1.026x ↓
πŸ“„πŸ“ˆ
1.057x ↓
πŸ“„πŸ“ˆ
1.104x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-31 python/d89a5f6a6e65511a5f6e d89a5f6 (NOGIL) 1.027x ↓
πŸ“„πŸ“ˆ
1.059x ↓
πŸ“„πŸ“ˆ
1.106x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-31 python/d89a5f6a6e65511a5f6e d89a5f6 1.086x ↑
πŸ“„πŸ“ˆ
1.047x ↑
πŸ“„πŸ“ˆ
2025-01-30 python/10ee2d9d3bcde27c75f1 10ee2d9 1.097x ↑
πŸ“„πŸ“ˆ
1.058x ↑
πŸ“„πŸ“ˆ
2025-01-30 python/10ee2d9d3bcde27c75f1 10ee2d9 (NOGIL) 1.050x ↓
πŸ“„πŸ“ˆ
1.080x ↓
πŸ“„πŸ“ˆ
1.134x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-30 nascheme/gh_129201_gc_mark_pr e12dd2e (NOGIL) 1.054x ↓
πŸ“„πŸ“ˆ
1.085x ↓
πŸ“„πŸ“ˆ
1.006x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-30 python/4ca9fc08f89bf7172d41 4ca9fc0 (NOGIL) 1.048x ↓
πŸ“„πŸ“ˆ
1.079x ↓
πŸ“„πŸ“ˆ
2025-01-30 python/a549f439384b4509b256 a549f43 (NOGIL) 1.045x ↓
πŸ“„πŸ“ˆ
1.076x ↓
πŸ“„πŸ“ˆ
1.134x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-30 python/a549f439384b4509b256 a549f43 1.101x ↑
πŸ“„πŸ“ˆ
1.062x ↑
πŸ“„πŸ“ˆ
2025-01-29 python/25cf79a0829422bd8479 25cf79a (NOGIL) 1.072x ↓
πŸ“„πŸ“ˆ
1.102x ↓
πŸ“„πŸ“ˆ
2025-01-29 colesbury/gh_128563_revert 8014514 (NOGIL) 1.042x ↓
πŸ“„πŸ“ˆ
1.073x ↓
πŸ“„πŸ“ˆ
1.002x ↑
πŸ“„πŸ“ˆπŸ§ 
2025-01-29 python/99ed3025fe8fa9079b4c 99ed302 (NOGIL) 1.043x ↓
πŸ“„πŸ“ˆ
1.075x ↓
πŸ“„πŸ“ˆ
2025-01-29 Yhg1s/load_const_defer fcfb942 (NOGIL) 1.079x ↓
πŸ“„πŸ“ˆ
1.109x ↓
πŸ“„πŸ“ˆ
1.008x ↓
πŸ“„πŸ“ˆπŸ§ 
2025-01-28 python/828b27680f07f1ed8302 828b276 1.093x ↑
πŸ“„πŸ“ˆ
1.054x ↑
πŸ“„πŸ“ˆ
2025-01-28 python/828b27680f07f1ed8302 828b276 (NOGIL) 1.076x ↓
πŸ“„πŸ“ˆ
1.107x ↓
πŸ“„πŸ“ˆ
1.155x ↓
πŸ“„πŸ“ˆπŸ§ 

* 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

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published