-
-
Notifications
You must be signed in to change notification settings - Fork 310
Add information about pbs performance #1192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+43
−0
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| ## python-build-standalone performance | ||
|
|
||
| <img | ||
| width="1820" height="1730" | ||
| alt="Shows a chart with violin plots with benchmark results" | ||
| src="https://github.com/user-attachments/assets/5499f9ce-ee02-4485-baa2-9d982fe457e6" | ||
| /> | ||
|
|
||
| The figure above compares CPython 3.14.6 performance across several distributions using pyperformance. Each [violin](https://en.wikipedia.org/wiki/Violin_plot) represents the distribution of per-benchmark mean runtime ratios between an alternative CPython distribution and python-build-standalone on the same platform and architecture. Ratios greater than 1 indicate that python-build-standalone was faster; ratios less than 1 indicate that the alternative distribution was faster. | ||
|
|
||
| The horizontal axis uses a logarithmic scale. The vertical marker within each violin indicates the geometric mean of the runtime ratios, which is also expressed as a percentage beside each distribution. | ||
|
|
||
| From top to bottom, the distributions shown are: | ||
| * The Docker `python:3.14` image for x86-64, providing CPython 3.14.6. | ||
| * A conda-forge Python 3.14.6 environment for `linux-64`. | ||
| * The system Python 3.14.6 in a `fedora:44` x86-64 Docker container. | ||
| * The system Python 3.14.6 in a `debian:forky` x86-64 Docker container. | ||
| * CPython 3.14.6 from the [Python.org macOS installer](https://www.python.org/ftp/python/3.14.6/python-3.14.6-macos11.pkg) on an arm64 Mac. | ||
| * A conda-forge Python 3.14.6 environment for `osx-arm64`. | ||
| * CPython 3.14.6 installed through Homebrew on an arm64 Mac. | ||
| * CPython 3.14.6 from the Python.org Windows installer for x86-64. | ||
| * A conda-forge Python 3.14.6 environment for `win-64`. | ||
|
jjhelmus marked this conversation as resolved.
|
||
|
|
||
| The reference interpreter for each comparison was the corresponding platform- and architecture-matched python-build-standalone CPython 3.14.6 distribution from the [`20260623` release](https://github.com/astral-sh/python-build-standalone/releases#release-20260623), installed using `uv`. | ||
|
|
||
| Benchmarks were run in early to mid-July 2026 and reflect the distributions and packages available during that period. | ||
|
|
||
| Supporting material, including [Dockerfiles](https://github.com/jjhelmus/cpython-benchmarks/tree/main/containers), commands for creating conda environments, and scripts for running the benchmarks, can be found in [jjhelmus/cpython-benchmarks](https://github.com/jjhelmus/cpython-benchmarks). This repository also contains the raw data and the [script](https://github.com/jjhelmus/cpython-benchmarks/blob/main/plot_pbs_314_comparison.py) used to produce the figure. | ||
|
|
||
| ### Benchmark methodology | ||
|
|
||
| Benchmarks were executed from a virtual environment created with the reference interpreter into which pyperformance 1.14.0 was installed. Results were collected using: | ||
| ``` shell | ||
| pyperformance run --rigorous --warmups 2 --output <logfile> | ||
| ``` | ||
|
|
||
| The complete benchmark suite was run at least twice to assess consistency. | ||
|
|
||
| Linux benchmarks were run inside Docker containers on an Ubuntu 24.04 host with an Intel Core i9-9900K processor. Hyper-Threading and Intel SpeedStep were disabled. | ||
|
|
||
| macOS benchmarks were run on a MacBook Pro with an Apple M5 Max processor. | ||
|
|
||
| Windows benchmarks were run on a Windows 11 host with an Intel Core i5-9500 processor. Intel Turbo Boost was disabled; this processor does not support Hyper-Threading. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.