Faster Than Ninja
- Developer Tools
- Programming
- Open Source
- Infrastructure
The post benchmarks build2 against a CMake plus Ninja setup on a C++ project and reports a small local-build win for build2 after tuning things like its file cache. That matters because Ninja is widely used as the "fast path" backend for C++ builds, so beating it at all is notable. The catch is that the comparison is not really pure executor versus executor. Several comments pointed out that CMake generation, generated-file handling, and the way the build graph gets expressed can change parallelism and hide the actual source of the gain.
If you care about build speed, profile the whole pipeline instead of treating "Ninja" as the only variable. The bigger wins are often in build graph shape, dependency scanning, and slow configure or generate steps, not the executor alone.
-
build2.org
- Discuss on HN