Eric Wong <normalperson / yhbt.net> wrote:
> Maybe CPU and compiler differences can account for this.
> What CPU and compiler are you using?
> I tested with AMD FX-8320 @ 3.5GHz + gcc (via Debian 4.9.2-10)

Here is my Pentium M laptop @ 1.60GHz (same gcc):

==> before <==
Calculating -------------------------------------
         Time#subsec    877.041k ( 4.8%) i/s -      4.376M in   5.003931s
              Time#-    641.496k ( 0.8%) i/s -      3.211M in   5.006323s
          Time#round     92.460k ( 6.2%) i/s -    461.538k in   5.010971s
           Time#to_f    667.671k ( 0.7%) i/s -      3.352M in   5.021237s
           Time#to_r    363.584k ( 1.8%) i/s -      1.827M in   5.026851s
          Rational#+      1.905M ( 0.4%) i/s -      9.549M in   5.012380s
          Rational#-      1.969M ( 0.6%) i/s -      9.866M in   5.009592s
          Rational#*      2.297M ( 0.5%) i/s -     11.499M in   5.007220s

==> after <==
Calculating -------------------------------------
         Time#subsec    851.197k ( 3.3%) i/s -      4.266M in   5.017699s
              Time#-    620.533k ( 0.6%) i/s -      3.113M in   5.016971s
          Time#round     87.844k ( 7.1%) i/s -    438.845k in   5.021267s
           Time#to_f    646.047k ( 0.5%) i/s -      3.233M in   5.004371s
           Time#to_r    346.689k ( 1.5%) i/s -      1.738M in   5.014382s
          Rational#+      1.922M ( 1.0%) i/s -      9.629M in   5.009889s
          Rational#-      2.026M ( 0.4%) i/s -     10.130M in   4.999171s
          Rational#*      2.320M ( 0.5%) i/s -     11.618M in   5.007548s


Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>