groovy, rhino, jython, jrubyの実行速度比較(2)
groovy, rhino, jython, jrubyの実行速度比較に対して、JRubyの実行速度について下記のコメントをもらった。
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について再度テストを実行。
その結果は下記のとおり。
test | max | min | average |
---|---|---|---|
alloc array | 1104 | 575 | 692.11 |
alloc matrix | 2319 | 1867 | 2012.87 |
compare | 8717 | 6165 | 6543.73 |
count | 4639 | 4141 | 4320.07 |
- alloc array:約2.5倍
- alloc matrix: 約2.75倍
- compare: 約2.9倍
- count: 約2.7倍
compareとcount以外はほぼGroovyと同じ。
現在のtrunkに対してはまだテストしていないが、これがさらに2倍程度早くなるとしたら、Jythonに近づくことになる。
Groovyも頑張れ。超頑張れ。