Go Compiler Is Producing Faster Code

According to Fig.8 in this paper published in 2011, given the Havlack loop recognition algorithm implemented using Go and C++, the running time of the Go version is 7 times of that of the C++ version. Even after tuning the Go version, the ratio is still 5.5x.

This gap seems shrinks since the paper was published.  Today, I ran the same program on my macbook with OS X Mountain Lion, I found the ratios are 3.11 and 2.18 respectively.  I used Go 1.0.3 and i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1.

One Response to “Go Compiler Is Producing Faster Code”

  1. Yin Wang Says:

    That’s good to hear. Do you have some recent updates? Is the performance still higher these days?

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s


Get every new post delivered to your Inbox.

Join 38 other followers

%d bloggers like this: