How to benchmark a Kotlin Program?

前端 未结 3 1356
悲&欢浪女
悲&欢浪女 2021-02-08 20:53

Are there any tools available the can help benchmark some code in Kotlin?

I can use something similar to the approaches suggested here: http://www.ibm.com/developerworks

3条回答
  •  囚心锁ツ
    2021-02-08 21:14

    For benchmarking use JMH. This framework can help you write most relevant benchmark, and know a lot about how JVM works. There are old project on github, but i hope you can just update versions and you good.

提交回复
热议问题