Sharkbench

Benchmarking programming languages and web frameworks

Go Computation Benchmark

About Go

Paradigm

Concurrent, Imperative, Procedural

Execution

Compiled

Typing

Static

Null Safety

NO

Memory Management

Garbage Collection

Go, often referred to as Golang, is a statically typed, compiled programming language designed at Google. It is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency. Go is designed to be simple, efficient, and readable, with a focus on modern software design and concurrent programming. It is widely used in production at Google and many other organizations worldwide and is particularly favored for building network servers, data pipelines, and even command-line tools.

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
Go v1.20
1.70 s
2.5 MB
Go v1.18
1.69 s
3.2 MB
Go v1.16
1.78 s
3.4 MB
Go v1.14
1.77 s
3.5 MB
Go v1.12
1.79 s
3.0 MB
Go v1.10
1.77 s
3.1 MB
Go v1.8
1.80 s
1.3 MB

© 2024 Tien Do Nam