On Dec 4, 2007 11:04 PM,  <[EMAIL PROTECTED]> wrote:
> On Dec 4, 2007 10:34 PM, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote:
> >
> > It's a tricky problem. As far as I can tell a large part of the cost is
> > simply all the classes we load...verification is expensive.
> >
>
> I see. Can I measure that time in some way? I tried once to add a
> "System.exit" in main but I guess that stops the JVM before all
> verification is done?
>

I tried to disable verification by using "-J-Xverify:none". The result:

----------------------
$ time ./jruby--by-svn/jruby/bin/jruby -e 'puts :hello'
hello
        7.27 real         5.88 user         0.64 sys
$
$ time ./jruby--by-svn/jruby/bin/jruby -J-Xverify:none -e 'puts :hello'
hello
        5.77 real         4.63 user         0.50 sys
----------------------

So for me 1.5 out of the 7 seconds is due to the verification (if I
understand the working of the option "-Xverify:none" right). The
remaining 5.77 seconds I supppose is JRuby:s own initialization.

(I also got a pointer to "nailgun", so I will search for what has been
said earlier on the list, and try it out later).

/Johan Holmberg

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

    http://xircles.codehaus.org/manage_email

Reply via email to