Sharkbench

Benchmarking programming languages and web frameworks

Kotlin Computation Benchmark

About Kotlin

Paradigm

Object-Oriented, Functional, Imperative

Execution

JIT, AOT

Typing

Static

Null Safety

YES

Memory Management

Garbage Collection

Kotlin is a modern programming language developed by JetBrains and officially supported by Google for Android development. It is fully interoperable with Java while addressing many of its limitations through features like null safety and extension functions. Kotlin has rapidly gained popularity for mobile development and is growing in server-side applications.

Benchmarks

This benchmark tests how fast a programming language can perform mathematical computations without any I/O or memory allocation. We are using the Leibniz formula to approximate the value of PI.

OS: LinuxCPU: Intel Core Ultra 5 325Last Updated: 2026-10-05
Language
Time
Memory
Build Time
1.02 s
2.3 MB
56.06 s

Popular languages

How does Kotlin compare to other languages?
Language
Time
Memory
Build Time
1.00 s
852.0 KB
3.02 s
1.00 s
440.0 KB
3.26 s
1.02 s
2.3 MB
56.06 s
1.16 s
5.6 MB
3.67 s
1.35 s
21.9 MB
15.21 s
1.37 s
1.4 MB
5.42 s
3.23 s
14.6 MB
0.89 s
67.88 s
7.5 MB
1.15 s
99.40 s
4.0 MB
1.26 s

© 2026 Tien Do Nam