Benchmarks For gcc-3.1
Isle writes: "Another good story found via OSNews.
Scott Robert Ladd has updated his
GCC vs Intel C++ compiler benchmark. Now you can find gcc 3.1 benchmarked against gcc 3.0.4 and icc 6.0.
The summary must be that gcc 3.1 is a lot faster than gcc 3.0.4 for very abstract C++ code, but icc is still slightly faster overall."
What most concerns me is how long it takes to compile code. While developing, I don't want to sit and wait for the compiler (+linker). gcc is sadly getting slower and slower in this regard.
Rik
In reality, what the article is showing is that the GCC team have optimised the gcc compiler by a great deal in a very short amount of time. They deserve recognition for this. One of the reasons for using gcc is that it compiles my code everywhere without any headaches. I develop on GNU/Linux, and run the code on Solaris (sometimes on SGI, but not too often). The code runs as expected. What would be interesting to see is how well gcc compares to optimised compilers on other non-x86 architectures. For my code, gcc is slower than Sun's CC, but I am using an oldish version of gcc.
After looking through the benchmark results and noting how large the difference is for the Monte-Carlo algorithm between gcc and icc, it seems that this may be caused the underlying standard C library that gcc is using. Perhaps the GNU version of drand48 is being more "random" by using some "random" system function of the kernel (or glibc), whereas icc may be unaware of these more-random system/glibc functions and substituting something of its own instead (which may be faster but probably not-as-random as the gcc version).
Paul.
Anyone do any rough benchmarks between the two?
Considering that GCC 2.9x is still shipping with most distros, and is the only one that compiles the kernel yet, why not show some comparisons with it, in addition to GCC 3.x and ICC? Why only benchmark fringe compilers, when a vast majority of Linux users will be rocking the older compiler?
my sig's at the bottom of the page.
Its already known that ICC & VC++ produces better code when compiling C++ but with the Gcc 3.x releases hopefully we will get better c++ compiling.
Never learn by your mistakes, if you do you may never dare to try again
I did it on Debian more than once. It runs.
If you want build speed, disable optimization etc.
I understand this when developing on a workstation for a workstation target, but if you're developing a graphics engine that must run within 200,000 machine cycles on fixed hardware, and your engine already runs at 84% CPU usage at -O3, you can't afford to turn off the optimizer.
Will I retire or break 10K?
And it is still a fringe compiler.
Red Hat is not linux.
does icc compile the kernel? Maybe we can end this stupid GNU/Linux discussion once and for all.