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
jruby
$ time jruby -S rake -T
rake about # List versions of all Rails frameworks and the env...
rake db:create # Create the database from config/database.yml for ...
rake db:drop # Drops the database for the current Rails.env (use...
rake db:fixtures:load # Load fixtures into the current environment's data...
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (sp...
rake db:schema:dump # Create a db/schema.rb file that can be portably u...
rake db:schema:load # Load a schema.rb file into the database
This file has been truncated. show original
jruby-complete
$ time java -jar jruby-complete-1.5.1.jar -S rake -T
rake about # List versions of all Rails frameworks and the env...
rake db:create # Create the database from config/database.yml for ...
rake db:drop # Drops the database for the current Rails.env (use...
rake db:fixtures:load # Load fixtures into the current environment's data...
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (sp...
rake db:schema:dump # Create a db/schema.rb file that can be portably u...
rake db:schema:load # Load a schema.rb file into the database
This file has been truncated. show original
jruby-complete with bootclasspath
$ time java -Xbootclasspath/a:jruby-complete-1.5.1.jar -jar jruby-complete-1.5.1.jar -S rake -T
rake about # List versions of all Rails frameworks and the env...
rake db:create # Create the database from config/database.yml for ...
rake db:drop # Drops the database for the current Rails.env (use...
rake db:fixtures:load # Load fixtures into the current environment's data...
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (sp...
rake db:schema:dump # Create a db/schema.rb file that can be portably u...
rake db:schema:load # Load a schema.rb file into the database
This file has been truncated. show original
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:
jruby
$ time jruby -S rake -T
rake about # List versions of all Rails frameworks and the env...
rake db:create # Create the database from config/database.yml for ...
rake db:drop # Drops the database for the current Rails.env (use...
rake db:fixtures:load # Load fixtures into the current environment's data...
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (sp...
rake db:schema:dump # Create a db/schema.rb file that can be portably u...
rake db:schema:load # Load a schema.rb file into the database
This file has been truncated. show original
jruby-complete
$ time java -jar jruby-complete-1.5.1.jar -S rake -T
rake about # List versions of all Rails frameworks and the env...
rake db:create # Create the database from config/database.yml for ...
rake db:drop # Drops the database for the current Rails.env (use...
rake db:fixtures:load # Load fixtures into the current environment's data...
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (sp...
rake db:schema:dump # Create a db/schema.rb file that can be portably u...
rake db:schema:load # Load a schema.rb file into the database
This file has been truncated. show original
jruby-complete with bootclasspath
$ time java -Xbootclasspath/a:jruby-complete-1.5.1.jar -jar jruby-complete-1.5.1.jar -S rake -T
rake about # List versions of all Rails frameworks and the env...
rake db:create # Create the database from config/database.yml for ...
rake db:drop # Drops the database for the current Rails.env (use...
rake db:fixtures:load # Load fixtures into the current environment's data...
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (sp...
rake db:schema:dump # Create a db/schema.rb file that can be portably u...
rake db:schema:load # Load a schema.rb file into the database
This file has been truncated. show original
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
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