Sharkbench

Benchmarking programming languages and web frameworks

Python Computation Benchmark

About Python

Paradigm

Object-Oriented, Imperative, Functional

Execution

Interpreted

Typing

Dynamic

Null Safety

NO

Memory Management

Garbage Collection

Python is a high-level, interpreted programming language known for its simplicity and readability with an emphasis on code clarity. It has an extensive standard library and large ecosystem of third-party packages for various domains. Python is used in web development, data analysis, artificial intelligence, and scientific computing, and is popular in educational settings.

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
2.17 s
77.3 MB
1.25 s
3.54 s
79.9 MB
1.11 s
3.54 s
76.7 MB
1.09 s
3.31 s
78.3 MB
1.11 s
2.17 s
82.6 MB
1.08 s
2.18 s
84.0 MB
1.08 s
99.28 s
11.1 MB
1.28 s
99.47 s
11.0 MB
1.25 s
101.96 s
12.8 MB
1.26 s
94.03 s
11.3 MB
1.28 s
100.63 s
10.3 MB
1.28 s
127.31 s
10.1 MB
1.14 s
122.38 s
10.0 MB
1.10 s
101.22 s
10.4 MB
1.12 s
90.31 s
11.4 MB
1.13 s

Popular languages

How does Python compare to other languages?
Language
Time
Memory
Build Time
1.00 s
2.2 MB
2.13 s
1.00 s
2.9 MB
4.12 s
1.00 s
65.9 MB
14.84 s
1.16 s
34.8 MB
4.49 s
1.36 s
3.8 MB
6.18 s
2.17 s
77.3 MB
1.25 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