3 ms·
I would be extremely surprised if Bazel were 4m faster than cmake+ninja with the same build config. If this really is a correct result, I bet the ninja people
by jlebar 6y ago
I would be extremely surprised if Bazel were 4m faster than cmake+ninja with the same build config.
If this really is a correct result, I bet the ninja people would want to hear about it. (And, kudos to the Bazel folks!) But I think it's more likely measurement error. Maybe the build flags or host compiler aren't the same in the two configurations?
- simfoo 6y agoMost likely the CMake build is simply building more code than Bazel is. I am 100% sure that this is not comparing apples to apples
- gravypod 6y agoYea, you can also see from the linked dashboards that it's writing way more stuff at the end of the build. I was watching the log just now and it looks like it's linking some things. I hope someone with more Bazel and LLVM knowledge can give this a go. I just wanted to toss something up as a "what would it be like if I just compiled this project" perspective. This is absolutely not a definitive "X is better than Y" since X and Y are completely different things.