Bignum performance in rubinius's bm_bignum way slower than it should be
-----------------------------------------------------------------------

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


What's with these numbers? Something's got to be broken here.

>From Rubinius's benchmark/rubinius/numerics/bm_bignum.rb

{noformat}
Ruby:
loop         0.290000   0.000000   0.290000 (  0.288583)
Bignum -@    0.950000   0.010000   0.960000 (  1.042115)
Bignum +     0.880000   0.000000   0.880000 (  0.889774)
Bignum -     0.890000   0.000000   0.890000 (  0.890159)
Bignum *     0.910000   0.000000   0.910000 (  0.959771)
Bignum /     0.910000   0.000000   0.910000 (  0.911021)
Bignum %     1.790000   0.010000   1.800000 (  1.935748)
Bignum <<    1.170000   0.000000   1.170000 (  1.191885)
Bignum >>    1.070000   0.010000   1.080000 (  1.138856)
Bignum <     0.920000   0.000000   0.920000 (  0.933318)
Bignum <=    0.930000   0.000000   0.930000 (  0.994578)
Bignum >     0.940000   0.010000   0.950000 (  0.939238)
Bignum >=    0.920000   0.000000   0.920000 (  0.933153)
Bignum ==    0.810000   0.000000   0.810000 (  0.872213)
Bignum <=>   0.820000   0.000000   0.820000 (  0.824019)

JRuby:
loop         0.174000   0.000000   0.174000 (  0.174000)
Bignum -@    0.374000   0.000000   0.374000 (  0.374000)
Bignum +     5.428000   0.000000   5.428000 (  5.428000)
Bignum -     5.142000   0.000000   5.142000 (  5.142000)
Bignum *     5.076000   0.000000   5.076000 (  5.076000)
Bignum /     5.049000   0.000000   5.049000 (  5.049000)
Bignum %     7.447000   0.000000   7.447000 (  7.447000)
Bignum <<    0.573000   0.000000   0.573000 (  0.573000)
Bignum >>    0.582000   0.000000   0.582000 (  0.582000)
Bignum <     5.262000   0.000000   5.262000 (  5.262000)
Bignum <=    5.457000   0.000000   5.457000 (  5.457000)
Bignum >     5.368000   0.000000   5.368000 (  5.368000)
Bignum >=    5.477000   0.000000   5.477000 (  5.477000)
Bignum ==    5.186000   0.000000   5.186000 (  5.186000)
Bignum <=>   5.030000   0.000000   5.030000 (  5.030000)
{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