Performance of jruby vs jruby-complete.jar

hi,

is there a particular reason why the performance of jruby-complete.jar
is so bad. is more the then factor 2 between them. see

which is against a freshly created rails3 application and they both
use exactly the same environment, OS, java, gems, etc.

how I improve the situation with jruby-complete ?

regards Kristian


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On 17 Aug 2010, at 16:07, kristian wrote:

is there a particular reason why the performance of jruby-complete.jar
is so bad. is more the then factor 2 between them. see
jruby · GitHub
which is against a freshly created rails3 application and they both
use exactly the same environment, OS, java, gems, etc.

how I improve the situation with jruby-complete ?

Good question. I get similar results: gist:530333 · GitHub

I’d love to know what’s going on here.

Dan


Daniel L.

twitter.com/danlucraft
danlucraft.com/blog


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Aug 17, 2010, at 11:13 AM, Daniel L. wrote:

I’d love to know what’s going on here.

Dan


Daniel L.

twitter.com/danlucraft
- Daniel Lucraft

They are not equivalent commands. I suspect that JVM needs to look for
each class found in jruby.jar in order to choose the correct class to
run main() from.

To wit, giving the bootclasspath makes a big difference.
gist:530410 · GitHub

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, Aug 17, 2010 at 10:29 AM, Hirotsugu A. [email protected]
wrote:

how I improve the situation with jruby-complete ?
twitter.com/danlucraft
- Daniel Lucraft

They are not equivalent commands. I suspect that JVM needs to look for each class found in jruby.jar in order to choose the correct class to run main() from.

To wit, giving the bootclasspath makes a big difference. gist:530410 · GitHub

Yeah, I suspect we’re running into slowness due to class verification
here – JRuby has to load a lot of classes :). Putting the jar on the
bootclasspath avoids verification. You can also try passing
-Xverify:none on the command-line (but this avoids verifying any
classes at all, so be careful with untrusted classes).

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Aug 17, 2010, at 11:40 AM, kristian wrote:

hmm, with my more complex example there is a slight improvement with
appending the bootclasspath but the factor 2 remains:

jruby · GitHub

so there is more going on here.

Kristian

There are other options given to JVM, of course. Take a look at the
second snippet I just added in gist:530410 · GitHub (with
native launcher; shell script version may be slightly different)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

hmm, with my more complex example there is a slight improvement with
appending the bootclasspath but the factor 2 remains:

so there is more going on here.

Kristian

On Tue, Aug 17, 2010 at 9:04 PM, Nick S. [email protected]
wrote:

-Xverify:none on the command-line (but this avoids verifying any


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

thanx a lot - I going to use this little result in my jruby launcher:

and jruby-complete can be even faster then the jruby installation !

and found out how to improve start up of maven as well :wink:

regards Kristian

On Tue, Aug 17, 2010 at 9:19 PM, Hirotsugu A. [email protected]
wrote:

Kristian


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email