From: "Daniel Schömer" Date: 2007-10-28T19:05:01+09:00 Subject: Re: How fast does your Ruby run? Lionel Bouton wrote: > Daniel Schömer wrote: >> Gentoo Linux on Intel Pentium 4 2.40GHz (512 KB cache): >> >> Ruby Patch Platform Seconds Iterations per second >> ===== ===== =================== ========= ===================== >> 1.8.6 111 i686-linux (gentoo) 32.801483 30486 >> 1.8.6 5000 i686-linux 13.607635 73488 >> 1.9.0 0 i686-linux 3.988949 250692 >> 1.8.5 3876 java 63.589 15725 >> 1.8.5 3876 java (-J-server) 44.173 22638 >> 1.8.5 3876 java (-O) 36.917 27087 >> 1.8.5 3876 java (-O -J-server) 15.194 65815 >> >> The first is the system installed ruby. > IIRC on my Gentoo I got +80% on this particular benchmark with > USE="-threads". Given this huge difference I looked at the speedup for > the test suite of one of my Rails applications and got only ~ +10%. > [...] Now I recompiled ruby without threads: Ruby Patch Platform Seconds Iterations/s ===== ===== ============================ ========= ============ 1.8.6 111 i686-linux (gentoo) 32.801483 30486 1.8.6 111 i686-linux (gentoo -threads) 15.776961 63383 Wow, that's better. Since I only have a few packages compiled with threads, I try to recompile them without. Daniel -- Hi! I'm a .signature virus. Copy me into your ~/.signature to help me spread!