From: gabriele renzi Date: 2004-10-09T17:59:42+09:00 Subject: Re: Ruby is a slow performer Sergei Gnezdov ha scritto: > Hi, > > I just found an interesting benchmark site. I am sure many of you know > about it :) > > http://shootout.alioth.debian.org/ > > Ruby is one of the slowest performers among compared languages. > Are there any plans to get better? I guess there are :) The latest message about YARV that plans to make ruby from 50% to >300% faster (warning benchmarks are 80% made of..) not to mention the rubydium JIT. So let's join koichi and alexander hacking on them ASAP :) About the shootout. Most of the stuff is plan useless in ruby. You won't implemente heapsort in ruby, cause you have sort/sort_by. Nor you would use http://shootout.alioth.debian.org/lang/ruby/random.ruby.html because you have rand(). (note that this gen_random algorithm is applied in other places slowing down even those) Basically remeber that ruby is 'fast enough' for most things, useless for others. You can't have everything I guess :) PS Anyway, stuff from that shootout is wildly unidiomatic, just look at http://shootout.alioth.debian.org/lang/ruby/lists.ruby.html I remember sending a message to them but getting no feedback. Maybe I should try again.