Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Performance
-
Labels:None
-
Environment:HidejRuby Master: Build directly from github, last commit #09e1090
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3)
OpenJDK Server VM (build 22.0-b10, mixed mode)
OS: Ubuntu 12.04 LTSShowjRuby Master: Build directly from github, last commit #09e1090 java version "1.7.0_03" OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3) OpenJDK Server VM (build 22.0-b10, mixed mode) OS: Ubuntu 12.04 LTS
-
Number of attachments :
Description
Noticed that MRI & jRuby 1.6.7 are fast compared to jRuby master(1.7) while generating tictactoe game tree.
MRI: 18.83
1.6.7: 9.25
master: 23.65
#Ruby MRI
$ ruby --version ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] $ ruby tictactoe.rb 18.830000 0.020000 18.850000 ( 18.910411)
#jRuby 1.6.7
$ ruby --version jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK Server VM 1.7.0_03) [linux-i386-java] $ ruby tictactoe.rb 9.258000 0.000000 9.258000 ( 9.171000)
#jRuby master(1.7.0)
$ ruby --version jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-06-06 09e1090) (OpenJDK Server VM 1.7.0_03) [linux-i386-java] $ruby tictactoe.rb 23.650000 0.210000 23.860000 ( 21.600000)
Maybe its not a issue with jruby & the code is written wrong but still submitting as blog post here asked to submit reports in case we notice MRI or prior version of jruby are faster than jruby 1.7
The attached code is taken from here:
https://github.com/flyingmachine/minimax-tictactoe/blob/master/phase2/tictactoe.rb