I'm talking about development time. I can use LLVM/Clang and develop significantly faster than I ever could using GCC. I'm not seeing there waiting as long for the C++ compiler to do its work.
If I need better optimization of binaries that I'm preparing for release, then I can always use GCC or ICC instead, for a single compilation.
That way, LLVM/Clang save me a huge amount of time on a daily basis. Then on the relatively rare occasion when I need better optimization, I'm only subjected to GCC's noticeably worse performance for a short period of time.
> I'm not seeing there waiting as long for the C++ compiler to do its work.
Then turn down optimization in GCC. The point I was trying to make is that you're likely making an apples/oranges comparison. With defaults, yes, GCC compiles slower but also produces faster binaries, you can turn the optimization level down and the results are more comparable in both dimensions. (YMMV depending on the project)
Here, let me quote it for you: "With optimizations disabled, I tend to see a 30% to 40% reduction in compilation time when using LLVM/Clang instead of recent releases of GCC."
Do you see the first part? You know, the part that goes "With optimizations disabled"? Do you see it?
I'm talking about running both LLVM/Clang and GCC with optimizations disabled. -O0. Even with optimizations disabled, GCC is still significantly slower than LLVM/Clang on all of the various C++ code bases that I have tried it with, and especially those that I work with on a daily basis.
How are we supposed to have a discussion if you aren't actually reading what was written earlier?
Apparently not. I missed it in part because it's completely at odds with my experience. Interesting, may be some codebase difference. On a codebase I work on daily -O0 gcc 4.8.2 is about 5x faster than -O0 clang (3.5-198803), 6.078 seconds vs 33.069 seconds, no cacche or anything obviously in the way.
If I need better optimization of binaries that I'm preparing for release, then I can always use GCC or ICC instead, for a single compilation.
That way, LLVM/Clang save me a huge amount of time on a daily basis. Then on the relatively rare occasion when I need better optimization, I'm only subjected to GCC's noticeably worse performance for a short period of time.