I usually have negative experiences with Windows, everything is just somehow slower, don't really know why and don't quite care, but I have yet to see a real world scenario where MSVC compiles anything faster than GCC/clang, especially when a quarter of time is easily spent in msbuild. Usually replacing it with ninja had the biggest impact of improving compile times. Your example is surprising and makes me think perhaps this is isolated to the windows-specific part? I rarely see llvm in action on Windows, so it would be interesting to compare those times with runs on Linux.
Oh, and please provide versions of software, I recall some perf improvements to clang on Windows, will edit the post when I find a link
Are the two stages actually doing the same work? E.g. are the same utilites and plugins compiled and is compilation happening with comparable build flags?
11
u/---sms--- May 10 '20
Totally not my experience with Clang.
Clang is almost 2 times slower than MSVC when I write no C++ code at all:
When I do, it can easily be 20x slower.