Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JRuby 9000 performance with --debug is 4-5x slower than JRuby 1.7.2 or Ruby 2.3.3 #4909
JRuby 9k does not JIT when run in --debug and it runs quite a bit slower than 1.7.x.
Similar or better performance in JRuby 9000 as JRuby 1.7.2 / C|MRI Ruby 2.3.3
Performance is lower by a factor of 4-5x!
Very simple/generic test… JRuby 9000 is 4-5 times slower than JRuby 1.7.2/Ruby 2.3.3
I cannot reproduce this:
Can you show us
EDIT: Added OS and JRUBY OPTS to original comment
--debug is the cause of your performance issue. I believe to only run in interpreted mode and we also emit extra trace instrs. Why 1.7.2 does not suffer from this I don't recall but we do not recommend running performance sensitive applications with --debug enabled.
To show perf difference:
We have talked about improving performance of debug by allowing them to JIT but the emits of extra instrs will always make this slower than not emitting those extra instrs.
changed the title from
JRuby 9000 performance is 4-5x slower than JRuby 1.7.2 or Ruby 2.3.3
JRuby 9000 performance with --debug is 4-5x slower than JRuby 1.7.2 or Ruby 2.3.3
Dec 20, 2017
added a commit
Dec 20, 2017
Fixed in 1fd8a50.