June 2018
Intermediate to advanced
316 pages
6h 34m
English
The JetBrains team has prepared a repository on GitHub (https://github.com/JetBrains/kotlin-benchmarks) with many examples of how to use the JMH with Kotlin. This repository contains identical examples written in Java:

The repository also contains identical examples in Kotlin:

This lets us compare how fast functions written in Kotlin and Java run. If you run these benchmarks, the output will be as follows:

Read now
Unlock full access