ELSEIF
Your brief EB
294 stories from 73 feeds 87 clusters Refreshed 5 minutes ago next pull 13:20

PERFORMANCE Signal 377 2 feeds carried it

Faster Than Ninja

Illustration only Photo by reyna on Unsplash

A performance comparison shows that the build2 build system can match Ninja's build speed when its advanced features are disabled, challenging Ninja's reputation as the fastest possible.

WHY IT MATTERS

For engineers choosing a build system, this comparison indicates that Ninja's speed advantage is partly due to offloading work to a generation step (like CMake), which adds time. build2 offers more built-in features (like token-based change tracking) that can be disabled to achieve similar performance, giving teams flexibility without sacrificing speed.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

build2 matched Ninja's build time for a full from-scratch build of Xerces-C++ after disabling its token-based change tracking.

02

Ninja's 'speed of light' reputation is misleading because it excludes the time spent by tools like CMake to generate Ninja files.

03

build2 provides features like precise change tracking and file cache compression that Ninja lacks, but these add overhead that can be turned off.

THE CLUSTER

Same story, 2 feeds.

ORDERED BY FIRST SEEN
Lobsters Faster Than Ninja Open ↗
Hacker News Faster Than Ninja Open ↗