LTO and CGU in CI dist build for cargo itself #14719
Labels
A-building-cargo-itself
Area: issues with building cargo
Performance
Gotta go fast!
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Inspired by @x-hgg-x 's recent works, I just did some benchmarks setting
[profile.release]
for Cargo. While with LTO on Cargo is 1.05x faster, the benchmark result doesn't seem good enough to convince myself to add an extra 3 minutes build time.Opened this issue just for a record.
This benchmark is based on 42f4143
[profile.release]
master
fat-1
fat-16
thin-1
thin-16
With cargo dependencies + aws-sdk-ec2
This benchmarks dependency resolution.
cargo generate-lockfile -Zno-index-update
master
fat-1
fat-16
thin-1
thin-16
With cargo dependencies
This benchmarks no-op build (Cargo overhead before rustc compilation).
cargo check
(prefilled cached withcargo check
)master
fat-1
fat-16
thin-1
thin-16
With cargo dependencies
This benchmarks unpacking
.crates
files and no-op build.rm -rf ~/.cargo/registry/src && cargo check
aster
fat-1
fat-16
thin-1
thin-16
The text was updated successfully, but these errors were encountered: