Originally posted by ssam
View Post
Announcement
Collapse
No announcement yet.
CompilerDeathMatch: surprising results
Collapse
X
-
Clang just got back in the game - and then some!
I have not merged this result yet since the computer crached during imagemagic compilation (probably overheating), which meant that I was only able to run 1 test this night.
side-by-side comparisons do however indicate that Clang performed as good or better than ICC or GCC when -O2 is used!
Pretty cool...
Comment
-
Updated merge: Clang and Open64
Here is an update with -O2 and -O3 for Clang and Open64.
We had our annual lab cleaning today so I could led my computer chew away on some numbers while I was busy with other stuff
TODO:
I think we are approaching saturation of this dataset, which will lead to a final result being announced (and I can finally start updating my Arch install )
* Upon request:
- Include Os flags - works for ICC, GCC, Clang and Open64
- Include special settings: specific requests for ICC and GCC (LTO) currently.
- any other requests before the 64-bit tests are concluded to be finished?
* Stuff I am interested in:
- Check whether PCC can be tweaked for performance. I had an E-mail conversation with the current mantainer (Anders Magnusson) for possible flags.
- anyone an expert on TCC?
@Michael: Feel free to use these results for a Phoronix article if you want.
I think we are close to reaching saturation with this test set, which means that the only expansions that can be made are 1) different hardware, 2) more compilers.
When this series is concluded, I will start playing with 32-bit, where a number of other compilers are available in addition to those tested here (LCC, ACK, KenCC, SolarisStudio, OpenWatcom...)
Comment
-
isn't
Code:-march=core2 -mtune=generic
Code:-march=i686 -mtune=core2
Code:-march=i686 -mtune=atom
also, doesn't ICC have the equivalent of ffast-math on by default?
Comment
-
Interesting and somewhat weird results here and there. I would say that as much as possible it's important to use the same flags across compilers, else the results will quickly become meaningless UNLESS you handtune the best settings for each compiler which is pretty difficult. Yes, sometimes -O2 generates faster code than -O3, but -O3 is supposed to generate the fastest code so having all compilers use that (or whatever goes as -O3 for them) would make most sense imo. Also it's a good thing to explicitly specify other things like -ffast-math since as ssam mentioned some compilers defaults to that which can make a big difference in many benchmarks.
Also, I think it would be best to either stick to -march=native or specify the exact system used -march=<system>, do not bother with -mtune.
Interesting seeing clang compiling p7zip, last time I checked it failed, time build a new version from svn.
Comment
-
Originally posted by staalmannen View PostWhen this series is concluded, I will start playing with 32-bit, where a number of other compilers are available in addition to those tested here (LCC, ACK, KenCC, SolarisStudio, OpenWatcom...)
Comment
-
Originally posted by Wyatt View PostI'd be interested kind of interested to see how DMC stacks up these days. (Does it build on Linux? I know DMD does, but....)
@ the rest suggesting new flags: Thanks. I will take those points into account during the -Os rounds and later for 32-bit tests. If they make a big impact I might repeat some other tests with the new flags. I think, however, that really compiler-specific tweaks are a bit out of the scope of a very broad investigation like this and would probably be more interesting when specifically comparing two compilers, like ICC vs GCC for example.
Comment
-
Originally posted by devius View PostI know it's a bit late now, but my suggestion would be to ditch C-Ray as it's just a straight line across all compilers anyway. POV-Ray would have given more interesting results probably.
All suggestions are welcome
I am currently looking forward to concluding this round of tests though so that I can start with 32-bit.
Under my previous TODO are the stuff that I have planned to check before concluding. If anyone got more suggestions, you better come up with them before I have run all the things on the current TODO and announce the test to be concluded/saturated (because after that I am updating my OS and subsequent analyses will not be comparable).
Comment
Comment