It seems a lot is needed for running a simple ruby script with 1.9 while much less is required by 1.8.

Charles Nutter has talked recently about some tips to speed jruby startup time. One of them is "export JAVA_OPTS='-d32'", but I get this on Linux:

Running a 32-bit JVM is not supported on this platform.

Is there any other tip that I could use for a 64-bit JVM on Linux to speed up the startup time?

Thanks, Rodrigo.

On 07-01-2011 23:29, Hirotsugu Asari wrote:
Below, you see that thread.jar, rbconfig, rubygems and generator_internal add 
up to the startup cost.

[system]:~ $ time jruby -J-Djruby.debug.loadService.timing=true --1.9 -e 'p 1'
   ->  thread.jar
   <- thread.jar - 9ms
   ->  rbconfig
   <- rbconfig - 204ms
   ->  rubygems/defaults/operating_system
   <- rubygems/defaults/operating_system - 14ms
   ->  enumerator
     ->  generator_internal
       ->  thread
       <- thread - 0ms
     <- generator_internal - 188ms
   <- enumerator - 227ms
1

real    0m2.244s
user    0m1.574s
sys     0m0.174s
[system]:~ $ time jruby -J-Djruby.debug.loadService.timing=true -e 'p 1'
   ->  enumerator
   <- enumerator - 11ms
1

real    0m1.072s
user    0m0.646s
sys     0m0.108s



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

     http://xircles.codehaus.org/manage_email




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

   http://xircles.codehaus.org/manage_email


Reply via email to