JavaFree.org | RubyOnBr.org

Meus testes com JRuby 1.1.2

Acompanhar Meus testes com JRuby 1.1.2 1 post, 1 participante

Avatar Alexandre Ri... 12 posts

Como nesta versão do JRuby foi mencionado que seu startup foi melhorado, fiz o seguinte teste abaixo:
Criei um script em ruby da seguinte forma:


init = Time.now
`/opt/jruby-1.1.1/bin/jruby -e “puts ‘teste’”`
puts Time.now – init

No caso da versao 1.1.2 eu apenas alterei a versão
Segue os resultados:
jruby 1.1.1
[ariveira@viper ~]$ ruby launch.rb
3.284127
[ariveira@viper ~]$ ruby launch.rb
2.886392
[ariveira@viper ~]$ ruby launch.rb
2.866982
[ariveira@viper ~]$ ruby launch.rb
2.856355
[ariveira@viper ~]$ ruby launch.rb
2.974929

versão 1.1.2
[ariveira@viper ~]$ ruby launch.rb
1.464138
[ariveira@viper ~]$ ruby launch.rb
1.458131
[ariveira@viper ~]$ ruby launch.rb
1.179251
[ariveira@viper ~]$ ruby launch.rb
1.182176
[ariveira@viper ~]$ ruby launch.rb
1.178334


Meu ambiente: Linux Centos 5.1, p4, 1 GB RAM, java 1.6.0_05-b13

Bom código,

Alexandre Riveira