How to benchmark a Kotlin Program?
问题 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/java/library/j-benchmark1/index.html - but I was wondering if there were any Kotlin native tools, so that i wouldn't necessarily have to reinvent the wheel! 回答1: 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