Rust Performance Is Getting Hurt On LLVM 10 With Noticeably Longer Build Times
Written by Michael Larabel in LLVM on 10 May 2020 at 11:23 AM EDT. 59 Comments
LLVM --
While our benchmarks of Clang 10.0 have generally been favorable or at least no big regressions compared to LLVM/Clang 9.0, it seems the same can't be said for Rust when shifting their compiler base to LLVM 10.0.

Rust developer Josh Stone of Red Hat raised the alarms on Friday that LLVM 10.0 through their Git master is seeing not only longer build times and much greater number of instructions when compiling the same code-base.

Stone and other developers have found LLVM 10.0 to lead to slower Rust compile times in the area of 7~8% compared to using LLVM 9.0. In a mailing list post he found from LLVM 9.x to 10.x was around 5.3% more instructions being generated on a test code-base and another 4.8% hit when it came from LLVM 10.x to LLVM 11 Git master.

Given the sizable hit and multiple Rust developers seeing this same behavior out of LLVM 10, hopefully it won't be long before it's addressed.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week