rails startup is ~5-10 times slower than MRI
--------------------------------------------
Key: JRUBY-4240
URL: http://jira.codehaus.org/browse/JRUBY-4240
Project: JRuby
Issue Type: Bug
Components: Performance
Affects Versions: JRuby 1.4
Reporter: John Firebaugh
This is an important metric for test-driven development. It's difficult to get
into a flow with a minimum 5-10 second overhead on every test run.
In a fresh rails app:
$ time rake environment
(in /Users/john_firebaugh/Development/test2)
real 0m1.033s
user 0m0.848s
sys 0m0.154s
$ time jrake environment
(in /Users/john_firebaugh/Development/test2)
real 0m8.340s
user 0m12.506s
sys 0m0.717s
Nailgun helps, but not enough to make test-driven development pleasant.
$ time jruby --ng -S rake environment
(in /Users/john_firebaugh/Development/test2)
real 0m5.243s
user 0m0.011s
sys 0m0.023s
For real-world app with significant custom initialization code, the difference
is even greater, and nailgun less helpful:
$ time jrake environment
(in /Users/john_firebaugh/Development/SCM)
real 0m14.107s
user 0m18.855s
sys 0m1.038s
$ time jruby --ng -S rake environment
(in /Users/john_firebaugh/Development/SCM)
real 0m12.584s
user 0m0.011s
sys 0m0.023s
$ jruby -v
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-04 6586) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_15) [x86_64-java]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email