C++ clear winner in Google language tests

By Derek du Preez
06 Jun 2011 View Comments
decoding-edm

Google has released a research paper that suggests C++ is the best-performing programming language in the market.

The internet giant implemented a compact algorithm in four languages – C++, Java, Scala and its own programming language Go – and then benchmarked results to find "factors of difference".

Further reading

"We find that in terms of performance, C++ wins out by a large margin," the paper says.

However, despite C++ trumping the others in performance, Google also suggests that it requires the "most extensive tuning efforts, many of which were done at a level of sophistication that would not be available to the average programmer".

This compares to Java, which the paper describes as the "simplest to implement", but also the hardest to analyse for performance.

The research found that Scala had "powerful language features", which allowed for the "best optimisation of code complexity".

Google also ran tests on Go, a language it began developing in 2007. In May 2010, the company said that Go was being used for "real stuff", by which it probably meant distributed web services.

However, Go did not stand up too well against the more established languages, as the tests indicated that the compilers for it are "still immature", which was reflected in "both performance and binary size".

Reader comments
blog comments powered by Disqus
Newsletters
Is it time to open Windows?

Computing believes that Microsoft will start offering Windows free of charge by 2017. Is this a good thing for the enterprise?

54 %
20 %
5 %
16 %
5 %