jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-4263

Loading of rb files is much slower in JRuby than in MRI (2x-5x)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major 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

Bug - A problem which impairs or prevents the functions of the product. JRUBY-4273 Loading of *compiled* files is much slower in JRuby than loading in MRI (10x)

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Thomas E Enebo
    Reporter:
    Vladimir Sizikov
Vote (0)
Watch (1)

Dates

  • Created:
    22/Nov/09 3:17 PM
    Updated:
    25/Nov/09 3:21 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.