Requiring a library with rubygems and many libs loaded is very slow
-------------------------------------------------------------------
Key: JRUBY-3006
URL: http://jira.codehaus.org/browse/JRUBY-3006
Project: JRuby
Issue Type: Bug
Components: Performance
Reporter: Charles Oliver Nutter
Fix For: JRuby 1.1.5
See bench_time_require:
JRuby:
{noformat}
~/projects/jruby ➔ jruby bench/bench_time_require.rb
user system total real
require 'time' 2.062000 0.000000 2.062000 ( 2.062155)
require 'time' 1.657000 0.000000 1.657000 ( 1.657218)
require 'time' 1.746000 0.000000 1.746000 ( 1.746653)
Now with rubygems and activerecord
user system total real
require 'time' 15.844000 0.000000 15.844000 ( 15.843621)
require 'time' 15.731000 0.000000 15.731000 ( 15.730897)
require 'time' 15.470000 0.000000 15.470000 ( 15.469552)
{noformat}
Notice also that the normal require perf is quite a bit slower than MRI.
MRI:
{noformat}
~/projects/jruby ➔ ruby bench/bench_time_require.rb
user system total real
require 'time' 0.250000 0.360000 0.610000 ( 0.665305)
require 'time' 0.240000 0.350000 0.590000 ( 0.609246)
require 'time' 0.240000 0.350000 0.590000 ( 0.597323)
Now with rubygems and activerecord
user system total real
require 'time' 17.080000 1.240000 18.320000 ( 18.546773)
require 'time' 17.100000 1.250000 18.350000 ( 18.819965)
require 'time' 17.090000 1.250000 18.340000 ( 18.714379)
{noformat}
--
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