Open
Description
This is the output of cargo build -Z timings
for Servo, on a 14 cores / 28 threads machine, filtered with "Min unit time" at 10 seconds.
Edit: with Rust nightly-2019-09-28
For most of codegen for the script
crate only 3 to 4 threads seem to be CPU-bound, leaving other cores idle, despite codegen-units=16
being the default. (Results are similar if I specify it explicitly.)
Shouldn’t CPU usage be much closer to min(ncpu, codegen-units)
?