# Ruby 1.9 Ã¨ una scheggia

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480>\
**Category:** IT\
**Created:** [November 28, 2007, 11:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480 "2007-11-28T11:17:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [November 28, 2007, 11:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/1 "2007-11-28T11:17:48Z")

</div>

Ciao,

ho fatto un microbenchmark e ho notato che Ruby 1.9 (che sarà rilasciato a  
Natale) è veramente una scheggia.  
A quanto pare potrebbe essere anche più veloce di Python. 🙂

> **[Holy Shmoly, Ruby 1.9 smokes Python away! | Programming Zen](https://programmingzen.com/holy-shmoly-ruby-19-smokes-python-away/)**
>
> Alright the title of this post is a tad sensational sounding, I know, and it’s in part aimed at messing with my many Pythonista friends. We Rubyists have been teased for a long time, due to the slowness of the main Ruby interpreter. Well, it looks...

## Cheers, Antonio

[http://antoniocangiano.com](http://antoniocangiano.com) - Zen and the Art of Ruby P.ming  
[http://math-blog.com](http://math-blog.com) - Math Blog: Mathematics is wonderful!  
[http://effettofarfalla.com](http://effettofarfalla.com) - Il battito d’ali di un italiano a Toronto

---

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [November 28, 2007, 11:24am UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/2 "2007-11-28T11:24:17Z")

</div>

On Nov 28, 2007 11:16 AM, Antonio C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ho fatto un microbenchmark e ho notato che Ruby 1.9 (che sarà rilasciato a  
> Natale) è veramente una scheggia.  
> A quanto pare potrebbe essere anche più veloce di Python. 🙂

ottimo, se poi consideri anche i miglioramenti di jruby, soprattutto se  
su  
JDK6:

> **[Java 6 Port for OS X (Tiger and Leopard)](http://headius.blogspot.com/2007/11/java-6-port-for-os-x-tiger-and-leopard.html)**
>
> I just stumbled across this little gem today: Landon Fuller's JDK 6 Port for OS X Who Landon Fuller is I don't know. But I find it incredibl...

nel 2008, con ruby si potrebbe avere “l’imbarazzo della scelta” come  
runtime  
(e tutti con ottime performance)

Luca

---

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [November 28, 2007, 11:58am UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/3 "2007-11-28T11:58:50Z")

</div>

On mer, 2007-11-28 at 05:16 -0500, Antonio C. wrote:

> Ciao,
> 
> ho fatto un microbenchmark e ho notato che Ruby 1.9 (che sarà rilasciato a  
> Natale) è veramente una scheggia.  
> A quanto pare potrebbe essere anche più veloce di Python. 🙂
> 
> [Holy Shmoly, Ruby 1.9 smokes Python away! | Programming Zen](http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/)
> 
> Cheers,  
> Antonio

Una nota per chi volesse compilare il trunk svn:

e’ necessaria la versione 2.3 di bison:

[http://ftp.gnu.org/gnu/bison/bison-2.3.tar.bz2](http://ftp.gnu.org/gnu/bison/bison-2.3.tar.bz2)

(yacc non funzia)

–  
Roberto De Ioris  
[http://unbit.it](http://unbit.it)  
JID: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [November 28, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/4 "2007-11-28T14:46:34Z")

</div>

> nel 2008, con ruby si potrebbe avere “l’imbarazzo della scelta” come runtime  
> (e tutti con ottime performance)

Tranne quello che usa il 95 delle persone;-)

Speriamo che rilascino prossimamente qualcosa di piu` veloce - sara`  
bello fare molto di piu` con lo stesso hardware.

–  
David N. Welton

[http://www.welton.it/davidw/](http://www.welton.it/davidw/)

[http://www.dedasys.com/](http://www.dedasys.com/)

---

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [November 28, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/5 "2007-11-28T15:10:39Z")

</div>

On Wednesday 28 November 2007 11:16:47 Antonio C. wrote:

> Ciao,
> 
> ho fatto un microbenchmark e ho notato che Ruby 1.9 (che sarà rilasciato a  
> Natale) è veramente una scheggia.  
> A quanto pare potrebbe essere anche più veloce di Python. 🙂
> 
> [Holy Shmoly, Ruby 1.9 smokes Python away! | Programming Zen](http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-awa)

ciao antonio,

pensi di pubblicare un altro benchmark tra YARV, MRI, JRuby e Rubinus?  
sarebbe  
davvero molto interessante.

–  
Aequam memento rebus in arduis servare mentem…

Mauro T. [http://www.tortonesi.com](http://www.tortonesi.com)

University of Ferrara - Dept. of Eng. [http://www.ing.unife.it](http://www.ing.unife.it)  
GNU Wget - HTTP/FTP file retrieval tool  
[Wget - GNU Project - Free Software Foundation](http://www.gnu.org/software/wget)  
Deep Space 6 - IPv6 for Linux [http://www.deepspace6.net](http://www.deepspace6.net)  
Ferrara Linux User Group [http://www.ferrara.linux.it](http://www.ferrara.linux.it)

---

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [November 28, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/6 "2007-11-28T14:47:09Z")

</div>

> Tranne quello che usa il 95 delle persone;-)

95%, volevo dire.

---

<div class="post-metadata">

**Author:** ![visitor1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/74df32/32.png) [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Post date:** [December 3, 2007, 1:28am UTC](https://www.ruby-forum.com/t/ruby-1-9-a-una-scheggia/121480/7 "2007-12-03T01:28:34Z")

</div>

Ho fatto la prova, ma python, con psyco, Ã¨ di gran lunga piÃ¹ veloce di  
ruby1.9  
Si vede ad occhio, non li ho cronometrati, ma vi do i miei dati:  
Debian 4 testing.  
Cosi chi Ã¨ interessato puÃ² provare:

./bash\_rb19  
lun dic 3 00:48:50 CET 2007  
n=0 =\> 0  
…  
n=39 =\> 63245986  
lun dic 3 00:58:32 CET 2007

./bash\_rb18  
lun dic 3 01:02:52 CET 2007  
n=0 =\> 0  
…  
(alle 1:21 era qui)  
n=37 =\> 24157817  
(ho interrotto)

./bash\_py25  
lun dic 3 01:22:15 CET 2007  
n=0 =\> 0  
…  
n=39 =\> 63245986  
lun dic 3 01:22:32 CET 2007

./bash\_py24  
lun dic 3 01:23:10 CET 2007  
n=0 =\> 0  
…  
n=39 =\> 63245986  
lun dic 3 01:23:19 CET 2007

All’occhio piÃ¹ attento non sarÃ certamente sfuggito che python2.4 Ã¨  
stato piÃ¹ veloce di python2.5.  
Il motivo potrebbe essere che l’interprete principale Ã¨ python2.4 e i  
moduli sono compilati per questa versione.

P.S. i programmi python li ho eseguiti con l’opzione “-OO”.

Ciao Michele
