Loading of *compiled* files is much slower in JRuby than loading in MRI (10x)
-----------------------------------------------------------------------------
Key: JRUBY-4273
URL: http://jira.codehaus.org/browse/JRUBY-4273
Project: JRuby
Issue Type: Bug
Components: Compiler, Performance
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
I've just updated the bench_load benchmark to include 1K load() calls for a
class files compiled from rb files.
Compare the results. Essentially, loading compiled class is 5x-6x slower than
loading rb class, which in turn 2x-3x times slower than loading in MRI. So,
loading compiled class is 10x-15x slower than loading in MRI! Something is
fishy!
JRuby:
{noformat}
D:\work\jruby-dev\jruby>jruby bench\bench_load.rb
user system total real
1 load 'fileutils-like' 0.077000 0.000000 0.077000 ( 0.056000)
1K load 'fileutils-like' 11.206000 0.000000 11.206000 ( 11.206000)
1K load compiled 'fileutils-like' 62.036000 0.000000 62.036000 ( 62.035000)
1K load 'rational' 3.442000 0.000000 3.442000 ( 3.442000)
10K require 'non-existing' 4.759000 0.000000 4.759000 ( 4.759000)
{noformat}
MRI:
{noformat}
ruby bench\bench_load.rb
user system total real
1 load 'fileutils-like' 0.016000 0.000000 0.016000 ( 0.007000)
1K load 'fileutils-like' 6.068000 0.327000 6.395000 ( 6.460370)
1K load 'rational' 1.810000 0.265000 2.075000 ( 2.086119)
10K require 'non-existing' 2.745000 11.014000 13.759000 ( 15.684897)
{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