Performance comparison of C++,Java,Scala & GO

Recently, a Googler wrote a research paper that compares the performance of Loop recognition algorithm in four different languages named as C++, Java, Scala & GO. Those  who are not familiar with Scala[1] and GO[2] can read them in detail using the attached references. Scala is based on JVM and it supports both functional and object oriented capabilities and its code is more compact than Java. GO is a compiled, garbage-collected, concurrent pro-
gramming language developed by Google Inc [2].

The end conclusion of the paper was that the C++ performance is much better than all other languages. Scala stood second in the list. But when Code optimization was performed then GO outperformed C++[4]. Even Java Code optimization googler Jeremy also stopped optimizing the Java code because “many of the C++ optimizations would apply to the Java code version as well” [3]. This lead to controversies in the paper as many people now have pointed out flaws in the paper and suggested improvements. You can find this paper from here.

[1] Scala

[2] GO

[3] Jeremy Manson, Java code optimizer comments

[4] Cade Metz, article in The Register


About Salman Khalid

I am a Computer Professional. I have got Msc in Informatics from university of Edinburgh and I worked as Java developer & associate software architect role in different organizations.
This entry was posted in Java. Bookmark the permalink.

One Response to Performance comparison of C++,Java,Scala & GO

  1. Omniblend says:

    Superb blog! Do you have any suggestions for aspiring writers?

    I’m hoping to start my own site soon but I’m a little lost on everything.

    Would you recommend starting with a free platform like WordPress or go for a paid option?
    There are so many options out there that I’m completely overwhelmed ..
    Any ideas? Cheers!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s