Skip to content

Commit

Permalink
Update the benchmark and add YJIT
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Nov 19, 2021
1 parent 2283800 commit 24721b4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
Binary file modified doc/benchmark-full-3000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/benchmark-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/benchmark-summary-3000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/benchmark-summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions doc/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* The error bars represent the standard deviation.

## Ruby implementations
* master: `ruby 3.0.0dev (2020-12-21T04:25:03Z master 74a7877836) [x86_64-linux]`
* ruby30: `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) +JIT [x86_64-linux]`
* master: `ruby 3.1.0dev (2021-11-18T17:47:40Z master 75ecbda438) [x86_64-linux]`
* ruby30: `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]`
* ruby27: `ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]`
* ruby26: `ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]`
* ruby25: `ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]`
Expand All @@ -30,6 +30,7 @@
* ruby187: `ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]`

* mastermjit, ruby\*mjit: ruby with `--jit`
* masteryjit, ruby\*yjit: ruby with `--yjit`

* truffleruby: `truffleruby 20.1.0, like ruby 2.6.5, GraalVM CE JVM [x86_64-linux]`
* jruby: `jruby 9.2.14.0 (2.5.7) 2020-12-08 ebe64bafb9 OpenJDK 64-Bit Server VM 25.275-b01 on 1.8.0_275-b01 +indy +jit [linux-x86_64]`
Expand Down
16 changes: 14 additions & 2 deletions tools/run-benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class MasterMJIT < DockerImage
RUN = [
"git clone --depth 1 https://github.com/ruby/ruby.git",
"cd ruby && autoconf",
"cd ruby && ./configure --prefix=`pwd`/local cppflags=-DNDEBUG",
"cd ruby && ./configure --prefix=`pwd`/local",
"cd ruby && make && make install",
]
RUBY = "ruby/ruby --jit -Iruby"
Expand All @@ -192,13 +192,25 @@ class Ruby26MJIT < DockerImage
RUBY = "ruby --jit"
end

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

class Master < DockerImage
FROM = "ubuntu:20.04"
APT = MASTER_APT
RUN = [
"git clone --depth 1 https://github.com/ruby/ruby.git",
"cd ruby && autoconf",
"cd ruby && ./configure --prefix=`pwd`/local cppflags=-DNDEBUG",
"cd ruby && ./configure --prefix=`pwd`/local",
"cd ruby && make && make install",
]
RUBY = "ruby/ruby -Iruby"
Expand Down

0 comments on commit 24721b4

Please sign in to comment.