2 ms·
I think that's an example of a system where the performance demands weren't high enough to justify using C++. There are lots and lots of applications where the
by jeffbee 6y ago
I think that's an example of a system where the performance demands weren't high enough to justify using C++. There are lots and lots of applications where the overall architecture can't take advantage of the speed of C++, but I think there's no question that the peak performance of C++ far outshines the abilities of Go.
Taking an example from the article, parts of Google's indexing pipeline are now in Go, but nobody is suggesting that the search engine would be.
- cdelsolar 6y agoGo is basically almost as fast as C++.
- jeffbee 6y agoAnd cat food is "basically" pâté. The Go toolchain lacks virtually all of the optimizations that a C++ compiler would employ in an optimized build and the Go toolchain also lacks all of the ways you'd achieve peak optimization for C++, such as profile-guided optimization and link-time interprocedural optimization. These programs are are not even peak optimized but the C++ version still wins every case by between 10% and 1000%. https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/go-gpp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...