groovy, rhino, jython, jrubyの実行速度比較(2)

groovy, rhino, jython, jrubyの実行速度比較に対して、JRubyの実行速度について下記のコメントをもらった。

Charles Oliver Nutterwrote

Can you run again with JRuby 0.9.1, or better yet with JRuby trunk? 0.9.1 is twice as fast as 0.9.0, and trunk is almost twice as fast again.

というわけで、とりあえず0.9.1について再度テストを実行。
その結果は下記のとおり。

testmaxminaverage
alloc array1104575692.11
alloc matrix231918672012.87
compare871761656543.73
count463941414320.07
0.9.0と比較すると、その実行速度は
  • alloc array:約2.5倍
  • alloc matrix: 約2.75倍
  • compare: 約2.9倍
  • count: 約2.7倍
という結果。
compareとcount以外はほぼGroovyと同じ。
現在のtrunkに対してはまだテストしていないが、これがさらに2倍程度早くなるとしたら、Jythonに近づくことになる。

Groovyも頑張れ。超頑張れ。