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.
Activity Over Time
Top Contributors
Keywords
Sample Comments
You're mistaken, Go is on part with both languages, usually faster.
Go is slower than Java (Java's (JIT) optimising compiler and GCs are much more advanced than Go's).
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.
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
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.
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.
Last I heard the Go compiler was generating code 6x or more slower than comparable C++ code. Is that not still true?
Since Go is compiled its going to be faster.
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.