Re:I made a build profiler to understand Bun's compile times
by epage on Monday September 14, 2026 @11:09AM
(#49698257)
Why not just pass `-jobs 1` to cargo?
Still won't be quite apples to apples because a multi-crate project will serialize more to disk.
Re:I made a build profiler to understand Bun's compile times
by lalitmaganti on Tuesday September 15, 2026 @08:10AM
(#49711326)
Because that would also cause the dependencies to be compiled in series also! The point was only to measure "what if the Bun crate was built in one shot" not any dependencies of Bun.
I added a Python script wrapping rustc which serializes all rustc invocations for bun_* crates; you can find the recoridng at [1]. Turns out it only increased the build by 1 minute! So clearly my intuitition that it was just crate parallelism was not correct.
One more confounding factor though is that rustc is parallelised while Zig's compiler is not (yet). So it's still possible that might be the reason.
[1] https://buildprof.lalitm.com/#!/?url=https%3A%2F%2Fblogexamp...