What is the performance of Groovy 2.0 with static compilation

后端 未结 2 1221
灰色年华
灰色年华 2021-01-17 16:39

I see that the recent release of Groovy 2.0 includes optional static compilation along with several other added benefits, like optional static type checking. After doing a b

2条回答
  •  深忆病人
    2021-01-17 17:01

    I believe java runs those tests in around 550ms

    I did some performance comparison with Java. For "static ternary" and "static if" performance of Groovy with @CompileStatic is somewhat the same as with Java. For "instance ternary" and "instance if" it's almost a factor of 2. See my blog post.

提交回复
热议问题