Repository navigation
Add CodSpeed walltime benchmarks workflow - #16
Merged
Merged
Conversation
Ivo Horák (horakivo)
force-pushed
the
ci/codspeed-walltime
branch
2 times, most recently
from
November 25, 2026 17:54
9872976 to
cda9ced
Compare
Ivo Horák (horakivo)
marked this pull request as ready for review
November 25, 2026 17:55
Ivo Horák (horakivo)
force-pushed
the
ci/codspeed-walltime
branch
from
November 25, 2026 17:56
cda9ced to
dcdaf07
Compare
Congrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch. 1 warning
|
Ivo Horák (horakivo)
force-pushed
the
ci/codspeed-walltime
branch
from
November 26, 2026 20:43
0813cec to
23a1a04
Compare
Builds a release native standalone on the CI pool, checks it on a hosted runner, and measures the C API micro benchmarks and the pure Python meso benchmarks on the self-hosted benchmark runner linux-amd64-bench. Results go to CodSpeed and are kept as a workflow artifact. Runs on pushes to master and elide-*.x, and on pull requests labelled perf:bench.
…runs Two benchmarks call functions that the public headers do not declare, which GCC 14 and later reject by default. A failed benchmark no longer discards the other results: they are uploaded and the job fails afterwards.
The driver moves to .github/elide and the workflow is named elide-codspeed.yml, so that everything the fork adds is recognisable.
The upstream style job requires an Oracle copyright header in every tracked .py file. The driver is not Oracle's code, so it drops the copied header and its extension, like the fork's other CI scripts.
develop is the branch the fork's changes are merged into; master only mirrors upstream.
Ivo Horák (horakivo)
force-pushed
the
ci/codspeed-walltime
branch
from
November 27, 2026 09:05
c9c3d02 to
c8983fa
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a workflow (
elide-codspeed.yml) that measures GraalPy on CodSpeed (https://app.codspeed.io/elide-dev/graalpython).What it does
build: builds a release native standalone (mx python-svm) onlinux-amd64-cipool. The standalone of the unittest workflow is not reused, because it is built with assertions and in quick mode (-Ob).check: on a hostedubuntu-24.04runner, unpacks the standalone and runs three C API benchmarks. This checks the artifact hand-off, that the binary runs on a machine other than the one that built it, and that the benchmark extensions compile. No timing is taken from it.walltime: on the self-hosted benchmark runnerlinux-amd64-bench, runs the 23 C API micro benchmarks (micro-native) and 33 of the 34 pure Pythonmesobenchmarks with the upstream harness and uploads the results to CodSpeed. The statistics are also kept as a workflow artifact, whether or not the upload succeeds..github/elide/codspeed-benchis the driver. It reads the benchmark tables frommx_graalpython_bench_param.py, runs every benchmark in its own process, takes the second half of the iterations as samples (the first half is warm-up) and writes CodSpeed's walltime results format. Benchmarks with fewer than 8 iterations are raised to 8, so there are at least 4 samples.meso/chaos-tracedis skipped: one iteration takes minutes.Why walltime
CodSpeed's simulation mode counts instructions under Valgrind and does not measure JIT-compiled code, which is what these benchmarks are about.
Needed before it measures anything
The runner group that holds
linux-amd64-benchmust be available to this repository, which is public. If it is not, thewalltimejob stays queued.The repository variable
CODSPEED_WALLTIME_RUNNERselects a different x86_64 runner label;CODSPEED_BUILD_RUNNERdoes the same for the build.The build runs on the CI pool rather than on the benchmark host, so that the host is occupied only for the measurement. I expect the measurement to take roughly 25 minutes; that is an estimate from another machine, not a measurement on the runner.
When it runs
developor anelide-*.xbranch.perf:bench, from this repository only.workflow_dispatch, once this is merged.Not verified
buildskips the Python and system package set-up of the unittest build job and relies on what the pool runners already have.walltimerelies on the benchmark host having Python 3 and a C compiler.CODSPEED_PROFILER_ENABLED=falseis taken from the runner's own warning text. It is meant to switch off the sampling profiler, which has nothing to attach to because the driver calls no instrumentation hooks.developstarts as a copy of upstream and imports the compiler fromoracle/graal, so this measures the upstream code base. Theelide-*.xbranches would need the workflow cherry-picked to be measured.micro-native/c-many-shortlived-objstakes about 270 s for its 8 iterations..github/scripts. Reviewers should say if a different header is wanted.🤖 Generated with Claude Code