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.
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:
nel 2008, con ruby si potrebbe avere “l’imbarazzo della scelta” come
runtime
(e tutti con ottime performance)
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.
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.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.