Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
1–10 of 10 posts
Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#2Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#3It would be neat to get a step-by-step list of what he did to compile this version of Ruby, what GC variables he used, etc.
ruby-install ruby 2.1.5 -- CC=clang
and if you want to include all the patches listed here: https://github.com/wayneeseguin/rvm/blob/master/patchsets/ru... ruby-install ruby 2.1.5 -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/01-zero-broken-tests.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/02-improve-gc-stats.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/03-display-more-detailed-stack-trace.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/04-show-full-backtrace-on-stack-overflow.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/05-funny-falcon-stc-density.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/06-funny-falcon-stc-pool-allocation.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/07-aman-opt-aset-aref-str.patch -p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.5/railsexpress/08-funny-falcon-method-cache.patch -- CC=clang
and you can use it with https://github.com/postmodern/chruby if you need to to switch between versions.As for GC, I am not sure it makes much of a difference as it used to back in the days. Probably even less when 2.2 ships with incremental garbage collection. It always depends on the type of work your app does also.
Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#4ok.
Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#5Which is a shame, because it's probably really useful.
i.e. what's the workload. what was the performance metric which improved. any detail you can give about the likely bottleneck of the system, etc.
Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#6Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#7It would be neat to get a step-by-step list of what he did to compile this version of Ruby, what GC variables he used, etc.
Re: Ruby compiled with Clang is 8% faster than with GCC 4.9, 44% faster than GCC 4.7
#8Frankly I don't trust in "5% boost, 20% boost, 44% faster" claims without knowing how the benchmark was performed.