Richard Simões
Richard Simões

Reputation: 12801

Go language benchmarks?

I see the claims that Go is supposed to be almost comparable in speed to C, but are there any benchmarks available yet?

Upvotes: 28

Views: 12518

Answers (6)

Peter Hoffmann
Peter Hoffmann

Reputation: 58664

Go is added to the Computer Language Benchmarks Game. In comparison to C++ it has still a way to go.

November 2009:

Nov 2009
(source: debian.org)

October 2011:

Oct 2011
(source: debian.org)

Upvotes: 31

Mike Samuel
Mike Samuel

Reputation: 120516

Profiling Go Programs discusses Robert Hundt's C++/Scala/Go benchmarks and also clearly explains how to performance tune Go applications. It's a single program benchmark but is worth reading to get an idea of the level of tool support for performance tuning and the results show that it is competitive with C++ on this particular problem chosen by Hundt.

Upvotes: 2

Jesse
Jesse

Reputation: 11

Keep in mind that the GC is a simple mark-sweep implementation. What I don't understand is why isn't Go utilizing the LLVM compiler tool chain?

Upvotes: 1

Eddie
Eddie

Reputation: 1958

I wrote a Go port of GenPrime (which is available at my fork of the project here). I published the results I received (compared to the C version) on this topic at Ferrous Moon. Despite the fact that my Go port used floating-point math versus integer math, the results are impressive.

Upvotes: 6

György Andrasek
György Andrasek

Reputation: 8277

There is a benchmark folder in the distribution. Check out $GOROOT/test/bench.

Upvotes: 15

Dave Swersky
Dave Swersky

Reputation: 34810

The documentation is light and filled with "maybe someday we'll X" and "watch this space for more information." The Go page lists the language reference as the best single source for information, which to me says infant language. I doubt there are any published benchmarks yet.

Upvotes: 7

Related Questions