我有一台几个月前配置的机器。RVM 用于安装 ruby 1.9.3-p125 以及 1.9.3-p125-perf。当我将未加工的红宝石性能与另一台相同的机器进行比较时,较旧的机器抽了它们。
例如:
================================================================================
With in-block needle calculation
================================================================================
Rehearsal ----------------------------------------------
detect 3.790000 0.000000 3.790000 ( 3.800895)
each 2.410000 0.000000 2.410000 ( 2.420860)
any 3.960000 0.000000 3.960000 ( 3.972099)
include 1.440000 0.000000 1.440000 ( 1.442862)
------------------------------------ total: 11.600000sec
Run Code Online (Sandbox Code Playgroud)
对比
================================================================================
With in-block needle calculation
================================================================================
Rehearsal ----------------------------------------------
detect 10.740000 0.000000 10.740000 ( 10.769366)
each 6.080000 0.010000 6.090000 ( 6.106323)
any 10.600000 0.000000 10.600000 ( 10.641606)
include 4.160000 0.000000 4.160000 ( 4.171530)
------------------------------------ total: 31.590000sec
Run Code Online (Sandbox Code Playgroud)
我试图在快速机器上使用 rvm …