In this post, we will look at how to set up the Maven infrastructure so we canbenchmark Kotlin code with JMH (the Java Microbenchmarking Harness). This post does not look in-depth on how to write JMH benchmarks, but rather howto build and run them. Create a Sample JMH Project Helpfully, the JMH project has a Maven archetype for Kotlin: $ mvn archetype:generate \ -DinteractiveMode=false\ -DarchetypeGroupId=org.openjdk.jmh \ -DarchetypeArtifactId=jmh-kotlin-benchmark-archetype \ -DgroupId=com.r...