From: "A. S. Bradbury" Date: 2006-09-15T20:39:26+09:00 Subject: Re: Benchmark for Ruby On Friday 15 September 2006 03:48, M. Edward (Ed) Borasky wrote: > Once you know where Ruby is spending its time, play with compiler flags. > gcc has oodles of possible optimizations, and gcc itself was tuned by > processes like this. It's worth spending a lot of time compiling the > Ruby interpreter, since it's going to be run often. I compiled Ruby on my system without --enable-pthreads and had a ~15-20% performance increase in real-world runs of my application, which makes no use of threads or external libraries. I emphasise that this is specific to my system (linux kernel 2.6, nptl-only) and my application, but that's still a non-insignificant performance increase for a real application run (rather than a micro-benchmark). Regards, Alex