Linked by Thom Holwerda on Fri 20th Feb 2009 15:49 UTC, submitted by Michael
Benchmarks "Earlier this month we published an article looking at the Linux versus OpenSolaris performance when using the new AMD Shanghai Opteron CPUs. Ubuntu Linux was faster than OpenSolaris 2008.11 in nearly all of the tests, but as mentioned in that article, OpenSolaris is still dependent upon GCC 3.4 where as Ubuntu and most other Linux distributions are now shipping with the newer and much-improved GCC 4 series. Following that article being published, Sun Microsystems had requested some compiler tests since they were confident the results would be different had their Sun Studio compiler been used. Well, in this article we now have some OpenSolaris benchmarks from the same AMD setup using GCC 3.4, GCC 4.0, and Sun Studio 12."
Permalink for comment 350021
To read all comments associated with this story, please click here.
by big_gie on Fri 20th Feb 2009 17:45 UTC
Member since:

I don't know if program compiled for the benchmark make uses of OpenMP, but if some of them does, then GCC won't compare to sun studio. OpenMP was introduced in GCC 4.2, while sun studio 12 has openmp support.

So if some packages depend on it, that might be a reason why Sun's compiler was faster for some test.

I was also told that Sun Studio on linux uses GCC internally, so it is not as fast as Sun Studio on Solaris... What I know for sure is that Studio 12 was compiling fine my program on linux and the executable was running fine too. But when ran on Solaris, the code horribly crashed... So I know _there is_ something different internally.

Reply Score: 1