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
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.
| Problem | Time | vs fastest | Rank | Memory | |
|---|---|---|---|---|---|
| Binary Trees | 52.1 ms | 1.01× | #1 | 6.5 MB | |
| Fannkuch-redux | 19.5 ms | 1.06× | #2 / 3 | 1.0 MB | |
| File processing | 181 ms | 1.25× | #2 / 3 | 6.3 MB | |
| Hash map | 100 ms | 3.23× | #2 / 3 | 47.6 MB | |
| JSON parsing | 583 ms | 29.8× | #2 / 3 | 198 MB | |
| Matrix multiply | 6.6 ms | 3.51× | #2 / 3 | 7.7 MB | |
| N-Body simulation | 80.5 ms | 1.27× | #2 / 3 | 1.2 MB | |
| Parallel reduction | 98.1 ms | 1.05× | #1 | 1.1 MB | |
| Prime sieve | 20.4 ms | 1.01× | #1 | 22.0 MB | |
| Sorting | 164 ms | 1.02× | #1 | 40.4 MB | |
| String operations | 37.7 ms | 2.33× | #2 / 3 | 31.7 MB |
Compare with other languages
How fast each language is relative to Go (composite over all tasks).
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)
| Release | Binary Trees | Fannkuch-redux | File processing | Hash map | JSON parsing | Matrix multiply | N-Body simulation | Parallel reduction | Prime sieve | Sorting | String operations |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1.27 2026-08-19 | 52.1 ms | 19.5 ms | 181 ms | 100 ms | 583 ms | 6.6 ms | 80.5 ms | 98.1 ms | 20.4 ms | 164 ms | 37.7 ms |
| 1.26 2026-02-10 | 78.2 ms | 20.4 ms | 181 ms | 103 ms | 344 ms | 6.2 ms | 80.2 ms | 95.6 ms | 20.5 ms | 163 ms | 37.6 ms |
| 1.24 2025-02-11 | 86.3 ms | 19.8 ms | 188 ms | 104 ms | 334 ms | 11.0 ms | 81.2 ms | 94.2 ms | 20.1 ms | 163 ms | 38.8 ms |
| 1.22 2024-02-06 | - | - | - | - | - | - | - | - | - | - | - |
| 1.21 2023-08-08 | - | - | - | - | - | - | - | - | - | - | - |
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.
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
- Go 1.27 2026-08-19Go 1.27 release
- Go 1.26 2026-02-10Go 1.26 release
- Go 1.24 2025-02-11Swiss-table based map implementation · Generic type aliases
- Go 1.22 2024-02-06
- Go 1.21 2023-08-08
Badge
Show this language's overall rank in your README or website:
[](https://stijnris.github.io/language-bench/languages/go/)<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>