Repository navigation
Run MMTk benchmarks - #31
Merged
Merged
Conversation
k0kubun
approved these changes
Nov 24, 2026
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
force-pushed
the
mvh-mmtk-benchmarks
branch
from
November 26, 2026 17:43
ec9c5e4 to
6164b63
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.
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.shscript will become unnecessary.