Skip to content

Run MMTk benchmarks - #31

Merged
eightbitraptor merged 3 commits into
masterfrom
mvh-mmtk-benchmarks
Nov 26, 2026
Merged

eightbitraptor merged 3 commits into
masterfrom
mvh-mmtk-benchmarks

Conversation

@eightbitraptor

Copy link
Copy Markdown
Contributor

Add a nightly ruby-bench run with modular GC and MMTk

This runner benchmarks Rubies from teh docker-images which aren't compiled with Modular GC support.

This commit adds another Ruby bench run that builds ruby from source inside a container with modular GC enabled and the MMTk GC module built and installed.

We then run rubybench with RUBY_GC_LIBRARY=mmtk.

The MMTk runner only considers the 7 newest dates in rubies.yml. This is so we don't overload the machine by building and attempting to benchmark hundreds of older commits. For MMTk research, past data is not necessary.

We run and sync the MMTk results after all other results have been synced so that MMTk build and runs don't impact the other benchmarks being released in a timely manner.

Note that this PR will require rework if ruby/docker-images#197 merges. If a Docker Image already exists in the Ruby docker hub that already contains MMTk and ModGC enabled, then we will no longer need to build it on this machine so the whole build-mmtk-ruby.sh script will become unnecessary.

bin/sync-results.rb ran git commands without checking their exit status,
so a failed push still printed "Results pushed" and exits successfully.

It also returned early when the working tree was clean, so a commit
whose push had failed on an earlier run was never pushed again.

In this commit we change the three git commands to use exception: true, so
any failure raises and the script exits non-zero

Then we push even when there is nothing to commit, so commits whose push
failed earlier get another chance.
This commit adds another ruby-bench run that uses the
master-modular-gc images published by ruby/docker-images. These images
are built with modular GC enabled and the MMTk GC module installed. We
run ruby-bench in them with RUBY_GC_LIBRARY=mmtk and write the results
under results/mmtk.

The MMTk runner only considers the 7 newest dates in rubies.yml, and
only dates whose modular GC image exists on ghcr.io. The images exist
only for recent commits, and past data is not necessary for MMTk
research.

We run and sync the MMTk results after all other results have been
synced, so the MMTk run does not delay the release of the other
benchmarks.
bin/ruby-kai1.sh exported the production repository URL and commit
prefix unconditionally, so there was no way to run the whole script
without pushing to rubybench-data.

In this commit we only default RUBYBENCH_RESULTS_REPO and
RUBYBENCH_RESULTS_COMMIT_PREFIX when they are unset, so a test can point
the run at a local bare mirror.
@eightbitraptor
eightbitraptor merged commit 98c0247 into master Nov 26, 2026
@eightbitraptor
eightbitraptor deleted the mvh-mmtk-benchmarks branch November 26, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants