[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby faster than Python???

Steve Litt

12/23/2005 7:55:00 PM

Hi all,

I read somewhere that Ruby is quite a bit faster than Python. Is
that true? Is it true under most circumstances, or just in special
cases?

The same article also said Ruby was somewhat slower than Perl :-)

SteveT

Steve Litt
http://www.troublesh...
slitt@troubleshooters.com


7 Answers

James Gray

12/23/2005 8:04:00 PM

0

On Dec 23, 2005, at 1:55 PM, Steve Litt wrote:

> Hi all,
>
> I read somewhere that Ruby is quite a bit faster than Python. Is
> that true? Is it true under most circumstances, or just in special
> cases?

I'm sure you could find special cases to favor either, but in general
I would expect just the opposite. Python's got quite a few clever
optimizations (as I understand it), and Ruby is known to have a few
speed issues.

> The same article also said Ruby was somewhat slower than Perl :-)

Definitely, yes. In my experience, Perl is quite a bit zippier for
many operations.

There's a reason we're all excited about YARV... ;)

James Edward Gray II



J. Ryan Sobol

12/23/2005 8:07:00 PM

0


On Dec 23, 2005, at 2:55 PM, Steve Litt wrote:

> Hi all,
>
> I read somewhere that Ruby is quite a bit faster than Python. Is
> that true? Is it true under most circumstances, or just in special
> cases?
>
> The same article also said Ruby was somewhat slower than Perl :-)
>
> SteveT
>
> Steve Litt
> http://www.troublesh...
> slitt@troubleshooters.com
>

Someone posted this the other day.

http://mail.python.org/pipermail/python-list/2005-October/3...


Eric Jacoboni

12/23/2005 9:17:00 PM

0

Antonio Cangiano <rubydevelopment@gmail.com> writes:

> Furthermore, Ruby will be significantly faster with YARV (Yet Another
> Ruby VM) http://www.atdot...

Current version (0.3.3) of YARV shows already a big boost on execution
speed.

--
Eric Jacoboni, ne il y a 1438812919 secondes

Isaac Gouy

12/23/2005 10:47:00 PM

0


Steve Litt wrote:
> Hi all,
>
> I read somewhere that Ruby is quite a bit faster than Python. Is
> that true? Is it true under most circumstances, or just in special
> cases?
>
> The same article also said Ruby was somewhat slower than Perl :-)
>
> SteveT
>
> Steve Litt
> http://www.troublesh...
> slitt@troubleshooters.com

http://www.rubygarden.org/ruby?...

Antonio Cangiano

12/24/2005 2:19:00 AM

0

Steve Litt wrote:
> Hi all,
>
> I read somewhere that Ruby is quite a bit faster than Python. Is
> that true? Is it true under most circumstances, or just in special
> cases?

No. Generally speaking, Python is faster than Ruby.

> The same article also said Ruby was somewhat slower than Perl :-)

True.

If you encounter performance issues, the profiler is your friend! :-)
The bottle-neck is often the programmer, not the interpreter :-P
Furthermore, Ruby will be significantly faster with YARV (Yet Another
Ruby VM) http://www.atdot...

Cheers,
--
Antonio Cangiano
My Ruby blog: http://www.antonioca...

Antonio Cangiano

12/24/2005 4:15:00 AM

0

Eric Jacoboni wrote:
> Antonio Cangiano <rubydevelopment@gmail.com> writes:
>
>
>>Furthermore, Ruby will be significantly faster with YARV (Yet Another
>>Ruby VM) http://www.atdot...
>
>
> Current version (0.3.3) of YARV shows already a big boost on execution
> speed.


Definetely, Eric. I used the future tense "will be" to indicate the time
when Ruby implementation will be based on YARV instead of the current
interpreter.

Cheers,
--
Antonio Cangiano
My Ruby blog: http://www.antonioca...

Christian Neukirchen

12/24/2005 1:02:00 PM

0

Eric Jacoboni <jaco@neottia.net> writes:

> Antonio Cangiano <rubydevelopment@gmail.com> writes:
>
>> Furthermore, Ruby will be significantly faster with YARV (Yet Another
>> Ruby VM) http://www.atdot...
>
> Current version (0.3.3) of YARV shows already a big boost on execution
> speed.

If it can run your code, that is...

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneuk...