Numeric bignum + float and float + bignum performance very slow
---------------------------------------------------------------

                 Key: JRUBY-2193
                 URL: http://jira.codehaus.org/browse/JRUBY-2193
             Project: JRuby
          Issue Type: Bug
          Components: Performance
    Affects Versions: JRuby 1.1RC2
            Reporter: Charles Oliver Nutter


This is from Rubinius's benchmark/rubinius/numerics/bm_add.rb:

{noformat}
Ruby:
loop              0.280000   0.000000   0.280000 (  0.287796)
Bignum + Bignum   1.180000   0.010000   1.190000 (  1.250289)
Bignum + Fixnum   1.480000   0.010000   1.490000 (  1.508606)
Bignum + Float    0.870000   0.000000   0.870000 (  0.911454)
Fixnum + Fixnum   0.770000   0.010000   0.780000 (  0.801898)
Fixnum + Bignum   2.180000   0.010000   2.190000 (  2.275250)
Fixnum + Float    0.830000   0.000000   0.830000 (  0.838134)
Float + Float     0.840000   0.000000   0.840000 (  0.838043)
Float + Bignum    0.880000   0.000000   0.880000 (  0.980453)
Float + Fixnum    0.840000   0.000000   0.840000 (  0.840747)

JRuby:
loop              0.156000   0.000000   0.156000 (  0.156000)
Bignum + Bignum   0.533000   0.000000   0.533000 (  0.533000)
Bignum + Fixnum   0.590000   0.000000   0.590000 (  0.590000)
Bignum + Float    5.324000   0.000000   5.324000 (  5.325000)
Fixnum + Fixnum   0.518000   0.000000   0.518000 (  0.518000)
Fixnum + Bignum   0.610000   0.000000   0.610000 (  0.610000)
Fixnum + Float    0.456000   0.000000   0.456000 (  0.456000)
Float + Float     0.462000   0.000000   0.462000 (  0.462000)
Float + Bignum    5.138000   0.000000   5.138000 (  5.138000)
Float + Fixnum    0.554000   0.000000   0.554000 (  0.554000)
{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


Reply via email to