This post originated from an RSS feed registered with Python Buzz
by Phillip Pearson.
Original Post: Is Ruby performance that terrible?
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
It seems that everyone is getting mad about Joel Spolsky saying Ruby is slow. The most recent thing Joel has suggested is that Ruby is slow because its nature results in lots of vtable lookups. Pretty much every other scripting language does the same thing, though, so Ruby should be able to be at least as fast as Python.
Interesting to see some real numbers on the Computer Language Shootout page. Python's usually quite a way down in the list, but the performance of the Ruby versions for each benchmark seems even worse -- so it looks like it's not just the nature of the language; Ruby's interpreter needs a fair bit of optimization too.
Either that, or Ruby hackers haven't spent much time optimizing the Ruby benchmarks on the site. That would be a worthwhile use of time for anyone in that camp who wants to make their language of choice appear a bit better to the world!
The same comparison, but for Python vs Ruby, tells a different story - Ruby is only faster for the 'startup' benchmark. It uses less memory for a significant number, though...