ruby performance change after rvm compile optimization
fer@hecate ~ $ echo "rvm_configure_env=(CFLAGS=-O3)" > ~/.rvmrc
fer@hecate ~ $ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m6.324s
user 0m6.146s
sys 0m0.004s
fer@hecate ~ $ rvm reinstall ruby-1.9.3-head
(...)
fer@hecate ~ $ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m2.730s
user 0m2.718s
sys 0m0.007s
fer@hecate ~ $ rvm use ree-1.8.7-2012.02
Using /home/fer/.rvm/gems/ree-1.8.7-2012.02
fer@hecate ~ $ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m23.993s
user 0m23.955s
sys 0m0.002s
fer@hecate ~ $ rvm reinstall ree-1.8.7-2012.02
(...)
fer@hecate ~ $ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
real 0m23.934s
user 0m23.897s
sys 0m0.002s