language-bench

Go

Go compiled ahead-of-time by the gc toolchain, with a concurrent garbage collector and goroutines.

go.dev ↗
Overall speed rank
#2 of 3
1.78× the fastest language
Latest release
1.27
5 tracked releases since 2023
Strongest on
Binary Trees
1.01× vs the fastest
Weakest on
JSON parsing
29.8× vs the fastest

Performance by problem

Newest release (1.27), default build (go build). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.

ProblemTimevs fastestRankMemory
Binary Trees52.1 ms1.01×
#16.5 MB
Fannkuch-redux19.5 ms1.06×
#2 / 31.0 MB
File processing181 ms1.25×
#2 / 36.3 MB
Hash map100 ms3.23×
#2 / 347.6 MB
JSON parsing583 ms29.8×
#2 / 3198 MB
Matrix multiply6.6 ms3.51×
#2 / 37.7 MB
N-Body simulation80.5 ms1.27×
#2 / 31.2 MB
Parallel reduction98.1 ms1.05×
#11.1 MB
Prime sieve20.4 ms1.01×
#122.0 MB
Sorting164 ms1.02×
#140.4 MB
String operations37.7 ms2.33×
#2 / 331.7 MB

Compare with other languages

How fast each language is relative to Go (composite over all tasks).

C
1.8× faster
Python
10× slower

Build settings

go build default

Default toolchain settings (GOAMD64=v1).

mkdir -p {bin}.d && cp {harness}/harness.go {bin}.d/harness.go && cp {src}/main.go {bin}.d/problem.go && go build -o {bin} {bin}.d/harness.go {bin}.d/problem.go{bin}

GOAMD64=v3 go build

Allows AVX2/BMI/FMA instructions on x86-64.

mkdir -p {bin}.d && cp {harness}/harness.go {bin}.d/harness.go && cp {src}/main.go {bin}.d/problem.go && GOAMD64=v3 go build -o {bin} {bin}.d/harness.go {bin}.d/problem.go{bin}

Every release (default build)

Speed across releases

Did Go get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.

0.0 ms18 ms37 ms55 ms74 ms2025202620241.271.261.241.221.21GOAMD64=v3 go buildGOAMD64=v3 go buildgo buildgo build

2 tracked releases have not been measured for this problem yet (1.22, 1.21, shown faded on the axis). Lines appear as soon as a second release has data.

Each point is one language release on its official release date, measured on an average machine. Hover a line, its label or a legend button to highlight it; hover a point for release highlights. “All problems” is the geometric mean over every scored problem; releases not yet measured on all of them are left out.

Release highlights

  1. Go 1.27 2026-08-19
    Go 1.27 release
  2. Go 1.26 2026-02-10
    Go 1.26 release
  3. Go 1.24 2025-02-11
    Swiss-table based map implementation · Generic type aliases
  4. Go 1.22 2024-02-06
  5. Go 1.21 2023-08-08

Badge

Show this language's overall rank in your README or website:

PreviewGo rank on language-bench
Markdown[![Go on language-bench](https://stijnris.github.io/language-bench/badges/go.svg)](https://stijnris.github.io/language-bench/languages/go/)
HTML<a href="https://stijnris.github.io/language-bench/languages/go/"><img src="https://stijnris.github.io/language-bench/badges/go.svg" alt="Go on language-bench"></a>