Speed benchmarks comparing Ruby to Py/Perl/PHP/etc?


(George Gambill) #1

Several months ago I attended a Ruby presentation at a local PLUG (Phoenix
Linux Users Group) InstallFest.

The presenter commented that Ruby (when finished) can be converted (my
words) to C. I suppose compiling from the C code would pickup some of the
performance lost.

However, at this time, I am still a “lurker” to Ruby. All though a lurker
with high hopes.

George

···

-----Original Message-----
From: Ruby Baby [mailto:ruby@hitmedia.com]
Sent: Thursday, February 19, 2004 3:13 AM
To: ruby-talk ML
Subject: Re: speed benchmarks comparing Ruby to Py/Perl/PHP/etc?

If you run a search on google for The Great Programming
Language Shootout it
shows performance graphs between a number of languages in a
number of categories
including tight loops, number crunching, etc.

How funny :

Perl, Python, Ruby all next to eachother - same results:

http://www.bagley.org/~doug/shootout/craps.shtml

(though this was 3 years ago)


(Emmanuel Touzery) #2

George Gambill wrote:

Several months ago I attended a Ruby presentation at a local PLUG (Phoenix
Linux Users Group) InstallFest.

The presenter commented that Ruby (when finished) can be converted (my
words) to C. I suppose compiling from the C code would pickup some of the
performance lost.

However, at this time, I am still a “lurker” to Ruby. All though a lurker
with high hopes.

You misunderstood, he probably meant that you can rewrite the
speed-critical parts of the application in C while keeping the rest of
the program in ruby. but otherwise there is no ruby->C converter around
(that I know about).

emmanuel