Re: [jruby-user] Anything wrong with shelling out to jruby?
John Joseph Bachir <[email protected]> Tue, 17 Mar 2015 15:01:46 -0400
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAOf2Z5v04satHexZOvZeCP5b5iyJE-LyNO_M9_hr9srWSU7Qdw@mail.gmail.com> |
Some simple tests at the heroku console show that this feature doesn't help
performance at all:
> JRuby.runtime.instance_config.run_ruby_in_process = false
=> false
> Benchmark.measure{`ruby -e"puts 'foo'"`}
=> 0.020000 0.010000 14.980000 ( 17.739000)
> JRuby.runtime.instance_config.run_ruby_in_process = true
=> true
> Benchmark.measure{`ruby -e"puts 'foo'"`}
=> 0.010000 0.000000 14.740000 ( 17.536000)
I wonder if the in-process feature isn't being used for some reason? Any
way to inspect this in either the inner or outer process?