Go Performance Debate

This cluster centers on debates comparing Go's runtime speed, compilation times, garbage collection, and optimizations to languages like Java, C, C++, Rust, and C#, with opinions ranging from Go being competitive to significantly slower.

📉 Falling 0.4x Programming Languages
3,798
Comments
18
Years Active
5
Top Authors
#2275
Topic ID

Activity Over Time

2009
15
2010
25
2011
51
2012
147
2013
394
2014
242
2015
230
2016
285
2017
261
2018
209
2019
317
2020
282
2021
238
2022
408
2023
216
2024
239
2025
230
2026
9

Keywords

MS e.g JIT ALGOL GOMAXPROCS O2 go.html JVM VB AND java gc faster slower compile performance benchmarks language compiled compiler

Sample Comments

Thaxll Jan 8, 2020 View on HN

You're mistaken, Go is on part with both languages, usually faster.

pron Oct 4, 2025 View on HN

Go is slower than Java (Java's (JIT) optimising compiler and GCs are much more advanced than Go's).

_ph_ Nov 11, 2016 View on HN

Yes, in my daily experience, Go is roughly on par with C code. There are a few constructs that the Go compiler does not optimize yet (jump tables), but other than that they are pretty close.

immibis Nov 18, 2025 View on HN

Go is far from the slowest language even though it has GC.

Go is generally slower than Java and C#, many languages pretend C performance but this is just false advertising

justincormack Jul 9, 2011 View on HN

Compiled Go is roughly the same performance as Java, so no I cant see a big win here. Sure there is some work needed on Go optimisation and GC.

melony Feb 23, 2022 View on HN

Go can be much, much faster if fast compile times is not focus. A good compiler can probably do some compile-time RAII inlining like C++ and Rust and reduce GC usage without needing any major changes to the core Go language. A lot of the more advanced optimizations done by LLVM are not implemented in Go because they slow down compilation. Go compiles insanely quick (like classic Pascal/VB), it feels more like a JITed language than compiled.

cageface Feb 2, 2012 View on HN

Last I heard the Go compiler was generating code 6x or more slower than comparable C++ code. Is that not still true?

ape4 May 17, 2016 View on HN

Since Go is compiled its going to be faster.

knowitnone Oct 30, 2024 View on HN

Nice work! Any reason why Go was used and not C or Rust? I was under the impression Go would be slower and you are aiming for high performance.