Sharkbench

Benchmarking programming languages and web frameworks

Java Computation Benchmark

About Java

Paradigm

Object-Oriented, Imperative

Execution

JIT, AOT

Typing

Static

Null Safety

NO

Memory Management

Garbage Collection

Java is a versatile programming language developed by Sun Microsystems, now owned by Oracle Corporation. It supports development across various platforms through its "write once, run anywhere" approach. Java is known for its object-oriented structure, high performance, and robust security features ideal for enterprise systems and Android development.

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-14
Language
Time
Memory
Build Time
1.00 s
65.9 MB
14.84 s
1.35 s
63.3 MB
14.57 s
1.15 s
59.0 MB
14.71 s
1.00 s
51.0 MB
14.77 s
1.68 s
38.1 MB
15.52 s
1.48 s
65.4 MB
15.74 s
1.49 s
61.7 MB
15.94 s
1.45 s
60.5 MB
15.79 s
1.48 s
58.3 MB
16.66 s

Popular languages

How does Java compare to other languages?
Language
Time
Memory
Build Time
1.00 s
2.2 MB
2.13 s
1.00 s
65.9 MB
14.84 s
1.00 s
2.9 MB
4.12 s
1.16 s
34.8 MB
4.49 s
1.36 s
3.8 MB
6.18 s
1.48 s
65.4 MB
15.74 s
3.24 s
66.4 MB
1.09 s
67.47 s
17.8 MB
1.29 s
99.28 s
11.1 MB
1.28 s

© 2026 Tien Nam Do