Skip to content

Language Shootout

A user-supported site Fastest, Shortest, Simplest

Hello World

Kotlin JVM #1 — Hello World

Write “Hello, world!” and exit. Every other benchmark subtracts this program’s time, so that startup does not count against heavy runtimes.

Time 0.4 ms
CPU time 12.7 ms
Peak memory 43,356 KB
gz 61 bytes — comments removed, gzipped
Style ★★★★★
Implementation Kotlin — Kotlin (JVM) 2.4.20
By sysop-
Submitted September 24, 2026

Style assessment

This is the canonical Kotlin Hello World: `fun main()` entry point with the standard-library `println`, exactly as any Kotlin practitioner would write it. There is nothing to improve.

Source

4 lines · Download hello-kotlin-jvm-1.kt

fun main() {
    println("Hello, world!")
}

Back to Hello World