我有一台几个月前配置的机器. 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
VS
================================================================================ 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
我尝试在快速机器上用rvm重新安装1.9.3-p125,而且ruby现在很慢.就像在RVM中发生了一些变化,或者我安装了一些使得ruby的编译版本表现更差的软件包.
我知道这是一个难以回答的问题,但我应该考虑哪些事情来追踪表现为何如此受到影响?
编辑
我刚刚尝试使用ruby-build进行安装,安装的版本很快. rvm在我的环境中构建它的事情很慢.
该问题与RVM使用的某些默认值有关.两件事有很大的不同,– disable-shared和–patch cflags.patch
cflags.patch仅适用于1.9.3-p194和p286,现在会自动添加.
rvm get head && rvm reinstall 1.9.3-p194 --disable-shared --debug
你应该看到cflags.patch得到应用.
如果您还想要猎鹰补丁,您需要这样做:
rvm get head && rvm reinstall 1.9.3-p194-perf --patch cflags.patch --patch falcon.diff --disable-shared --debug