Sharkbench

Benchmarking programming languages and web frameworks

C Computation Benchmark

About C

Paradigm

Procedural, Imperative

Execution

Compiled

Typing

Static

Null Safety

NO

Memory Management

Manual

C is a general-purpose programming language that was developed in the early 1970s and has influenced the development of many other languages, such as C++, Java and Python. It is known for its efficiency and control over system resources, making C a popular choice for high-performance computing 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.
Language
Time
Memory
C (GCC v12)
1.23 s
348.0 KB

© 2024 Tien Do Nam