Sharkbench

Benchmarking programming languages and web frameworks

JavaScript Computation Benchmark

About JavaScript

Paradigm

Object-Oriented, Imperative, Functional

Execution

Interpreted

Typing

Dynamic

Null Safety

NO

Memory Management

Garbage Collection

JavaScript is a high-level, dynamic programming language that conforms to the ECMAScript specification and has become a core technology of the World Wide Web. It enables interactive web elements and is supported by all major browsers without plugins. JavaScript can also be used on the server-side through Node.js for developing network 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.
Please note that the memory usage also includes the memory used by the HTTP server. Ideally, the most lightweight HTTP server should be used to measure the raw memory usage of the runtime.

OS: Linux/DockerCPU: Ryzen 7 7800X3DLast Updated: 2025-05-04
Language
Time
Memory
3.27 s
13.4 MB
1.43 s
58.8 MB
1.44 s
14.0 MB
1.54 s
10.3 MB
1.65 s
7.4 MB
1.79 s
7.1 MB
1.47 s
8.8 MB

Popular languages

How does JavaScript compare to other languages?
Language
Time
Memory
1.00 s
22.9 MB
1.02 s
584.0 KB
1.13 s
2.1 MB
1.39 s
448.0 KB
1.41 s
9.7 MB
1.47 s
8.8 MB
3.27 s
13.4 MB
83.69 s
6.8 MB
127.69 s
16.5 MB

© 2025 Tien Do Nam