Execution time of rspec under jruby

Hi,

I posted this question over on SO,


s-running-very-slow, but have had no luck. I thought this might be the
best
place to get some answers. Does anybody have any ideas?

Cheers

Barry

I don’t see in the SO thread anything that you’ve tried to speed up the
run,

geez, I could have sworn I read that SO post, so ignore my previous.
Yes,
the Faster RSpec with JRuby advice still holds true. Nailgun didn’t go
away, and Spork is still an option…

-Nick K.

I don’t see in the SO thread anything that you’ve tried to speed up the
run, so hopefully I’m not panning you by tossing you a wiki page, but
there’s alot of good stuff in it:

https://github.com/jruby/jruby/wiki/Improving-startup-time

I’m not sure if it is MRI/YARV specific, but have you tried Spork with
JRuby and Guard to keep the JRuby process running? Alot of the slowness
with JRuby is associated with the startup time of the JVM, which can be
somewhat mitigated with Nailgun or maybe Spork.

-Nick K.

Thanks for the advice Nice, and the link to github, I hadn’t come across
that yet. I’ll try out the various options.

Cheers

Barry

I don’t see in the SO thread anything that you’ve tried to speed up the
run,

geez, I could have sworn I read that SO post, so ignore my previous.
Yes,
the Faster RSpec with JRuby advice still holds true. Nailgun didn’t go
away, and Spork is still an option…

-Nick K.

On Fri, Dec 9, 2011 at 07:21, Nick K. [email protected] wrote:

I don’t see in the SO thread anything that you’ve tried to speed up the
run,
so hopefully I’m not panning you by tossing you a wiki page, but there’s
alot of good stuff in it:

https://github.com/jruby/jruby/wiki/Improving-startup-time

I’m not sure if it is MRI/YARV specific, but have you tried Spork with
JRuby
and Guard to keep the JRuby process running? Alot of the slowness with
JRuby is associated with the startup time of the JVM, which can be
somewhat
mitigated with Nailgun or maybe Spork.

-Nick K.

On Fri, Dec 9, 2011 at 03:27, Barry Jordan [email protected]
wrote:

Hi,

I posted this question over on SO,
http://stackoverflow.com/questions/8418682/rspec-tests-under-jruby-on-window
s-running-very-slow, but have had no luck. I thought this might be the
best
place to get some answers. Does anybody have any ideas?

Cheers

Barry

On 10/12/2011, at 12:23 AM, Nick K. wrote:

I don’t see in the SO thread anything that you’ve tried to speed up the run,

Yes, the Faster RSpec with JRuby advice still holds true. Nailgun didn’t go
away, and Spork is still an option…

I couldn’t make it work:
http://www.youtube.com/watch?v=buJvDN5rg28

@headius mentioned on Twitter that spork isn’t supposed to work as
process forking is not available on JRuby.

Some people claim they CAN run the spork though.

Cheers,
Dima
http://www.ApproachE.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs