Skip to content

Latest commit

 

History

History
98 lines (69 loc) · 17.6 KB

README.md

File metadata and controls

98 lines (69 loc) · 17.6 KB

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

linux x86_64 (linux)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2024-12-29 python/ef63cca494571f50906b ef63cca (NOGIL) 1.120x ↓
📄📈
1.150x ↓
📄📈
1.212x ↓
📄📈🧠
2024-12-29 python/ef63cca494571f50906b ef63cca 1.124x ↑
📄📈
1.082x ↑
📄📈
2024-12-28 python/f9a5a3a3ef34e63dc197 f9a5a3a (NOGIL) 1.105x ↓
📄📈
1.136x ↓
📄📈
1.208x ↓
📄📈🧠
2024-12-28 python/f9a5a3a3ef34e63dc197 f9a5a3a 1.138x ↑
📄📈
1.092x ↑
📄📈
2024-12-27 python/aeb9b65aa26444529e4a aeb9b65 1.155x ↑
📄📈
1.107x ↑
📄📈
2024-12-27 python/aeb9b65aa26444529e4a aeb9b65 (NOGIL) 1.091x ↓
📄📈
1.124x ↓
📄📈
1.208x ↓
📄📈🧠
2024-12-26 python/ea2b53739f1128184b41 ea2b537 1.114x ↑
📄📈
1.072x ↑
📄📈
2024-12-26 python/ea2b53739f1128184b41 ea2b537 (NOGIL) 1.142x ↓
📄📈
1.173x ↓
📄📈
1.224x ↓
📄📈🧠

linux x86_64 (vultr)

date fork/ref hash/flags vs. 3.12.6: vs. 3.13.0rc2: vs. base:
2024-12-29 python/ef63cca494571f50906b ef63cca (NOGIL) 1.170x ↓
📄📈
1.197x ↓
📄📈
1.238x ↓
📄📈🧠
2024-12-29 python/ef63cca494571f50906b ef63cca 1.096x ↑
📄📈
1.058x ↑
📄📈
2024-12-28 python/f9a5a3a3ef34e63dc197 f9a5a3a (NOGIL) 1.174x ↓
📄📈
1.201x ↓
📄📈
1.239x ↓
📄📈🧠
2024-12-28 python/f9a5a3a3ef34e63dc197 f9a5a3a 1.092x ↑
📄📈
1.053x ↑
📄📈
2024-12-27 python/aeb9b65aa26444529e4a aeb9b65 1.092x ↑
📄📈
1.054x ↑
📄📈
2024-12-27 python/aeb9b65aa26444529e4a aeb9b65 (NOGIL) 1.167x ↓
📄📈
1.193x ↓
📄📈
1.232x ↓
📄📈🧠
2024-12-26 python/ea2b53739f1128184b41 ea2b537 1.091x ↑
📄📈
1.053x ↑
📄📈
2024-12-26 python/ea2b53739f1128184b41 ea2b537 (NOGIL) 1.162x ↓
📄📈
1.189x ↓
📄📈
1.228x ↓
📄📈🧠

* 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.