-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
JRuby 9000 performance with --debug is 4-5x slower than JRuby 1.7.2 or Ruby 2.3.3 #4909
Comments
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. |
Wow, thank you for this! This was running locally, was just scared at first from the upgrade! |
@nightsurge We will still not recommend running in perf-sensitive modes with --debug but @headius decided to add support for --debug to the JIT. So it will definitely be a lot faster than it currently is on 9k. |
Fixed in 1fd8a50.
|
JRuby 9k does not JIT when run in --debug and it runs quite a bit slower than 1.7.x.
Environment
*JRuby 9.1.13.0
*JRuby 1.7.2
*C/MRI Ruby 2.3.3
*MacOS 10.12.6
*JRUBY_OPTS=-J-Xmx2048m -J-Xmn512m --server --debug
Expected Behavior
Similar or better performance in JRuby 9000 as JRuby 1.7.2 / C|MRI Ruby 2.3.3
Actual Behavior
Performance is lower by a factor of 4-5x!
JRuby 9000
JRuby 1.7.2
Ruby 2.3.3
Very simple/generic test… JRuby 9000 is 4-5 times slower than JRuby 1.7.2/Ruby 2.3.3
Benchmark
The text was updated successfully, but these errors were encountered: