>Stephen Bannasch wrote:
>>Thanks for testing Johan,
>>
>>It encouraged me to check out a fresh copy of JRuby and try that -- nailgun 
>>works fine:
>...
>>So there is some interesting difference between the two environments which I 
>>should be able to discover.
>
>If you figure it out, add something to the wiki...never know who might run 
>into it in the future.

Having this set as a shell env parameter:

  JRUBY_OPTS=-rubygems

somehow caused the slowdown.

I can't remember just what that was supposed to do.

Here's the test on a fresh trunk checkout (after compilation):

# first nailgun is fast

$ cd ../test_jruby/
[~/dev/test_jruby]$ bin/jruby-ng-server&
[1] 2426
[~/dev/test_jruby]$ NGServer started on all interfaces, port 2113.

[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m9.721s
user    0m0.006s
sys     0m0.021s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.619s
user    0m0.006s
sys     0m0.019s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.254s
user    0m0.006s
sys     0m0.020s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.177s
user    0m0.006s
sys     0m0.021s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.205s
user    0m0.006s
sys     0m0.020s

[~/dev/test_jruby]$ export JRUBY_HOME=`pwd`
[~/dev/test_jruby]$ export PATH=`pwd`/bin:$PATH

[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.167s
user    0m0.003s
sys     0m0.011s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.183s
user    0m0.003s
sys     0m0.011s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.158s
user    0m0.003s
sys     0m0.011s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m0.173s
user    0m0.003s
sys     0m0.010s

# there have been no gems installed yet

[~/dev/test_jruby]$ gem list --local                  

*** LOCAL GEMS ***

sources (0.0.1)
    This package provides download sources for remote gem installation

# set and export JRUBY_OPTS to -rubygems

[~/dev/test_jruby]$ export JRUBY_OPTS=-rubygems

# now nailgun is slow

[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m6.551s
user    0m0.003s
sys     0m0.010s
[~/dev/test_jruby]$ time bin/jruby-ng -e "puts 'hello'"
hello

real    0m4.439s
user    0m0.003s
sys     0m0.011s

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to