6 October 2026 · 2 min
When you build a program, the compiler turns each source file into an object file. Then a linker stitches all the object files and libraries into one executable.
On Linux, the default linker is usually GNU ld (also called bfd). The GNU binutils also ship gold, an alternative linker that was designed to be faster. Gold was built a Google and first made available in 2008.
The mold linker is a newer linker written by Rui Ueyama, it was first released in 2021. It is meant as a drop-in replacement for GNU ld, and its main selling point is speed. The latest release is version 3.
How much faster is it on a large project? I built Node.js from its main branch on an Intel Xeon Gold 6548N server (Emerald Rapids, two sockets, 64 cores and 128 threads) running Linux with GCC 14.3. The final node executable weighs about 160 MB.
I captured the command that links the node executable and ran it six times with each linker. I report the median.
With multithreading, mold is about 24 times faster than GNU ld and about 14 times faster than gold.
Even if I restrict mold to a single thread, it links Node.js in half a second, five times faster than GNU ld. With only 8 threads, you get nearly all of the benefit.
Using mold is easy. You can pass -fuse-ld=mold to GCC or clang. Or you can wrap your whole build:
mold -run make -j128
The -run option intercepts every call to the default linker and redirects it to mold. You do not need to change the build scripts.
Of course, two seconds saved on a link does not matter much if you build Node.js once. But a developer who edits a file and rebuilds dozens of times a day pays the link cost each time. With mold, the link step becomes nearly free.
My scripts and raw results are available.
Daniel Lemire, "Faster software linking with mold," in Daniel Lemire's blog, October 6, 2026, https://lemire.me/blog/2026/10/06/linking-node-js-with-mold/.
[BibTeX]

Clearly, these link times are without LTO, and then it doesn’t matter if it takes 2 s or 0.1 s – both are fast. How about with LTO?
A linker won’t do LTO, right? I will pass it back to the compiler? No?
Fair enough, I don’t know how it actually works, but it is compilation, so you must be right.
If anything, I’m surprised the stock ld is so fast! Which practical use case even benefits from a faster linker at this point, when the default one is so good?
From https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/tree/master/2026/10/mold all I see it’s a file named link_big4.png, but no script or whatsoever.
I forgot to push. Thanks for the comment.
I briefly tested out mold in my day job, but lld had a lower barrier to entry for us. In my testing, lld and mold were very similar for our large C++ projectes.