Hacker News new | ask | show | jobs
by danieldon 5638 days ago

    Ruby still lacks in scalability and speed compared to Perl
Ruby is faster than Perl, according to the language shootout:

http://shootout.alioth.debian.org/u32/which-programming-lang...

http://shootout.alioth.debian.org/u32q/which-programming-lan...

2 comments

It depends which graphs you look at:

These graphs tell me

1. Perl is slightly faster. 2. Perl uses much less memory on average 3. Perl uses less code.

http://shootout.alioth.debian.org/u32/benchmark.php?test=all...

http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...

However, on Ruby18 you do have a substantially bigger problem:

http://shootout.alioth.debian.org/u32/benchmark.php?test=all...

Lies, Damned lies.

> These graphs tell me

It must be the spectacles you're looking through.

These graphs tell me that

- about the same number of Perl programs are faster than the Ruby 1.9 programs by about the same amount, as there are Ruby programs faster than Perl programs

- some of the Perl programs use half the memory of the corresponding Ruby 1.9 programs

- the Perl programs and Ruby 1.9 programs use about the same amount of code.

> Ruby is faster than Perl

Only if you focus on a single number - the median - and ignore the complete overlap of the measurements shown by the boxplot and interquartile range.