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 (7d7d56d)

linux x86_64 (linux)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2024-11-12 python/8cc6e5c8751139e86b2a 8cc6e5c 1.00x ↑
πŸ“„πŸ“ˆ
1.01x ↓
πŸ“„πŸ“ˆ
2024-11-12 python/8cc6e5c8751139e86b2a 8cc6e5c (NOGIL) 1.45x ↓
πŸ“„πŸ“ˆ
1.47x ↓
πŸ“„πŸ“ˆ
1.45x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-12 python/494360afd00dc8f6b549 494360a 1.01x ↑
πŸ“„πŸ“ˆ
1.01x ↓
πŸ“„πŸ“ˆ
2024-11-12 python/494360afd00dc8f6b549 494360a (NOGIL) 1.44x ↓
πŸ“„πŸ“ˆ
1.46x ↓
πŸ“„πŸ“ˆ
1.45x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-10 python/f435de6765e032799585 f435de6 (NOGIL) 1.44x ↓
πŸ“„πŸ“ˆ
1.46x ↓
πŸ“„πŸ“ˆ
1.44x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-10 python/f435de6765e032799585 f435de6 1.00x ↑
πŸ“„πŸ“ˆ
1.01x ↓
πŸ“„πŸ“ˆ
2024-11-09 python/9d08423b6e0fa89ce9cf 9d08423 1.01x ↑
πŸ“„πŸ“ˆ
1.00x ↓
πŸ“„πŸ“ˆ
2024-11-09 python/9d08423b6e0fa89ce9cf 9d08423 (NOGIL) 1.44x ↓
πŸ“„πŸ“ˆ
1.47x ↓
πŸ“„πŸ“ˆ
1.46x ↓
πŸ“„πŸ“ˆπŸ§ 

linux x86_64 (vultr)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2024-11-13 corona10/gh_115999_bool b1f1c71 1.00x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
1.01x ↑
πŸ“„πŸ“ˆπŸ§ 
2024-11-12 python/8cc6e5c8751139e86b2a 8cc6e5c 1.01x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
2024-11-12 python/8cc6e5c8751139e86b2a 8cc6e5c (NOGIL) 1.55x ↓
πŸ“„πŸ“ˆ
1.57x ↓
πŸ“„πŸ“ˆ
1.54x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-12 python/494360afd00dc8f6b549 494360a 1.01x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
2024-11-12 python/494360afd00dc8f6b549 494360a (NOGIL) 1.55x ↓
πŸ“„πŸ“ˆ
1.57x ↓
πŸ“„πŸ“ˆ
1.54x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-10 python/f435de6765e032799585 f435de6 (NOGIL) 1.55x ↓
πŸ“„πŸ“ˆ
1.57x ↓
πŸ“„πŸ“ˆ
1.54x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-10 python/f435de6765e032799585 f435de6 1.00x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
2024-11-09 python/9d08423b6e0fa89ce9cf 9d08423 1.01x ↓
πŸ“„πŸ“ˆ
1.03x ↓
πŸ“„πŸ“ˆ
2024-11-09 python/9d08423b6e0fa89ce9cf 9d08423 (NOGIL) 1.56x ↓
πŸ“„πŸ“ˆ
1.58x ↓
πŸ“„πŸ“ˆ
1.54x ↓
πŸ“„πŸ“ˆπŸ§ 
2024-11-09 python/6293d00e7201f3f28b1f 6293d00 1.01x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
2024-11-08 Eclips4/ft_specialize_unpack d49e9e6 (NOGIL) 1.52x ↓
πŸ“„πŸ“ˆ
1.54x ↓
πŸ“„πŸ“ˆ
1.02x ↑
πŸ“„πŸ“ˆπŸ§ 
2024-11-08 Eclips4/ft_specialize_unpack d49e9e6 1.00x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
1.00x ↑
πŸ“„πŸ“ˆπŸ§ 
2024-11-07 python/85036c8d612007356d21 85036c8 1.00x ↓
πŸ“„πŸ“ˆ
1.02x ↓
πŸ“„πŸ“ˆ
2024-11-07 python/85036c8d612007356d21 85036c8 (NOGIL) 1.55x ↓
πŸ“„πŸ“ˆ
1.58x ↓
πŸ“„πŸ“ˆ
1.55x ↓
πŸ“„πŸ“ˆπŸ§ 

* 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