Forum: Ruby Ruby faster than Python???

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b62a85b59ccab03b84ee5ec378f75b4?d=identicon&s=25 Steve Litt (Guest)
on 2005-12-23 20:57
(Received via mailing list)
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.troubleshooters.com
slitt@troubleshooters.com
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2005-12-23 21:06
(Received via mailing list)
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
Ace7fa5337acbdf5897a6fc035897580?d=identicon&s=25 J. Ryan Sobol (Guest)
on 2005-12-23 21:09
(Received via mailing list)
On Dec 23, 2005, at 2:55 PM, Steve Litt wrote:

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

Someone posted this the other day.

http://mail.python.org/pipermail/python-list/2005-...
0f07a2117ccce0aa66069cb31d22168f?d=identicon&s=25 Antonio Cangiano (Guest)
on 2005-12-23 21:25
(Received via mailing list)
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.net/yarv/

Cheers,
C5eecd44fa818c7985d4f31bc2c42ac9?d=identicon&s=25 Eric Jacoboni (Guest)
on 2005-12-23 22:19
(Received via mailing list)
Antonio Cangiano <rubydevelopment@gmail.com> writes:

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

Current version (0.3.3) of YARV shows already a big boost on execution
speed.
0f07a2117ccce0aa66069cb31d22168f?d=identicon&s=25 Antonio Cangiano (Guest)
on 2005-12-23 23:19
(Received via mailing list)
Eric Jacoboni wrote:
> Antonio Cangiano <rubydevelopment@gmail.com> writes:
>
>
>>Furthermore, Ruby will be significantly faster with YARV (Yet Another
>>Ruby VM) http://www.atdot.net/yarv/
>
>
> 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,
8979474815030ad4a5d59718d1905715?d=identicon&s=25 Isaac Gouy (Guest)
on 2005-12-23 23:49
(Received via mailing list)
Steve Litt wrote:
> Steve Litt
> http://www.troubleshooters.com
> slitt@troubleshooters.com

http://www.rubygarden.org/ruby?BenchMarks
7264fb16beeea92b89bb42023738259d?d=identicon&s=25 Christian Neukirchen (Guest)
on 2005-12-24 14:02
(Received via mailing list)
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.net/yarv/
>
> Current version (0.3.3) of YARV shows already a big boost on execution
> speed.

If it can run your code, that is...
This topic is locked and can not be replied to.