Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
⇢ time ruby -e «count = 0; while(count < 100000000); count = count + 1; end; puts count»
100000000
real 0m9.820s
user 0m9.672s
sys 0m0.020s
⇢ time ruby -e «count = 0; while(count < 100000000); count = count + 1; end; puts count»
100000000
real 0m2.833s
user 0m2.789s
sys 0m0.009s
This generally makes my ruby ~1.5% faster.
$ less ~/.rvm/log/1.9.3-p194/make.log
[2012-08-01 12:03:08] make -j2
CC = /usr/bin/gcc-4.2
LD = ld
LDSHARED = /usr/bin/gcc-4.2 -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
[2012-04-27 11:55:38] make
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -fPIC
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/i686-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.1.9
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
Ruby на вашем сервере может работать в 2 раза медленее из-за RVM