Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Parser, Performance
-
Labels:None
-
Environment:latest jruby from master branch
Description
I've just comitted the bench/bench_load.rb benchmark, and we are 2x-5x slower then MRI (varies a bit between platforms). This is one of those issues identified while trying to make JRuby startup faster.
Essentially, cold load/require is pretty bad in JRuby. Hopefully, this benchmark could help out to narrow some cases.
When just loading/requiring 'fileutils' takes 200ms, that's bad.
#>jruby bench/bench_load.rb
user system total real
1 load 'fileutils-like' 0.186000 0.000000 0.186000 ( 0.157000)
1K load 'fileutils-like' 12.336000 0.000000 12.336000 ( 12.336000)
1K load 'rational' 3.698000 0.000000 3.698000 ( 3.698000)
10K require 'non-existing' 5.024000 0.000000 5.024000 ( 5.024000)
#>ruby bench/bench_load.rb
user system total real
1 load 'fileutils-like' 0.000000 0.020000 0.020000 ( 0.017378)
1K load 'fileutils-like' 1.870000 1.790000 3.660000 ( 3.662594)
1K load 'rational' 0.710000 0.700000 1.410000 ( 1.461065)
10K require 'non-existing' 0.280000 0.610000 0.890000 ( 0.889232)
Issue Links
- is related to
-
JRUBY-4273
Loading of *compiled* files is much slower in JRuby than loading in MRI (10x)
-