Skip to content
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

tools/run-benchmark.rb: support recent versions of CRuby. #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions tools/run-benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def self.fps_history(mode, count)
libgdbm-dev libdb-dev git ruby
)

class MasterMJIT < DockerImage
class MasterRJIT < DockerImage
FROM = "ubuntu:20.04"
APT = MASTER_APT
RUN = [
Expand All @@ -174,7 +174,12 @@ class MasterMJIT < DockerImage
"cd ruby && ./configure --prefix=`pwd`/local",
"cd ruby && make && make install",
]
RUBY = "ruby/ruby --jit -Iruby"
RUBY = "ruby/ruby --rjit -Iruby"
end

class Ruby33RJIT < DockerImage
FROM = "ruby:3.3-rc"
RUBY = "ruby --rjit -Iruby"
end

class Ruby30MJIT < DockerImage
Expand All @@ -193,17 +198,27 @@ class Ruby26MJIT < DockerImage
end

class MasterYJIT < DockerImage
FROM = "ubuntu:20.04"
FROM = "rust:latest"
APT = MASTER_APT
RUN = [
"git clone --depth 1 https://github.com/ruby/ruby.git",
"cd ruby && autoconf",
"cd ruby && ./autogen.sh",
"cd ruby && ./configure --prefix=`pwd`/local",
"cd ruby && make && make install",
]
RUBY = "ruby/ruby --yjit -Iruby"
end

class Ruby33YJIT < DockerImage
FROM = "ruby:3.3-rc"
RUBY = "ruby --yjit -Iruby"
end

class Ruby32YJIT < DockerImage
FROM = "ruby:3.2"
RUBY = "ruby --yjit -Iruby"
end

class Master < DockerImage
FROM = "ubuntu:20.04"
APT = MASTER_APT
Expand All @@ -216,6 +231,14 @@ class Master < DockerImage
RUBY = "ruby/ruby -Iruby"
end

class Ruby33 < DockerImage
FROM = "ruby:3.3-rc"
end

class Ruby32 < DockerImage
FROM = "ruby:3.2"
end

class Ruby30 < DockerImage
FROM = "rubylang/ruby:3.0-focal"
end
Expand Down