Skip to content

Commit

Permalink
Add DockerImage's for recent versions of CRuby.
Browse files Browse the repository at this point in the history
fix.
  • Loading branch information
sisshiki1969 committed Sep 23, 2023
1 parent 24721b4 commit c71ab67
Showing 1 changed file with 27 additions and 4 deletions.
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

0 comments on commit c71ab67

Please sign in to comment.