Re:Making your ruby fly
by josephlord on Thursday November 22, 2012 @11:25AM
(#4819214)
Better than 2x for me adding '-O3':
Before - OS X (2.4GHz Core Duo 2):
After - OS X (2.4GHz Core Duo 2):
Before - Ubuntu (1.8GHz AMD Phenom quad core)
After - Ubuntu (1.8GHz AMD Phenom quad core)
[ Parent
| on HN ]
Is that just with the CFLAGS, or did you include the Falcon patches?
Re:Making your ruby fly
by josephlord on Thursday November 22, 2012 @08:53PM
(#4820693)
CFLAGS (-O3) only!
Nearly factor of 3 improvement.
I think I'll repost this link next week when more people are in work mode. It could save a lot of time and CPU cycles for a lot of people. It's a shame the default isn't better (not sure if it is RVM issue or the Ruby package itself or if I can configure a user/system default build config).
Wow, that's impressive. My results weren't nearly as good - maybe 5-8% or so, but I'm at ~5.4s load time on an app that takes almost 30 sec on vanilla MRI, so that's not too bad.
It is indeed a shame the defaults aren't better. I wonder if there's a reason that it's not default. If not, maybe a pull request is warranted.