Skip to content

Conversation

mati865
Copy link
Member

@mati865 mati865 commented Sep 10, 2025

Looks like there is quite a lot of a publicity here, so I probably at least provide minimal info if somebody wants to try it out.

You can try it locally out by adding -Clinker=wild to RUSTFLAGS or with cargo +<toolchain_name> rustc -- -C linker=wild and verify whether it works by running readelf -p .comment target/debug/<binary/shared object name> | rg -i linker - it should say Wild ....
This experiment only covers x86_64-unknown-linux-gnu host for now.

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Sep 10, 2025
@mati865

This comment was marked as resolved.

@rust-timer

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Sep 10, 2025
[nothing to see here yet] Experiments
@rust-bors

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 10, 2025
@mati865 mati865 added the S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. label Sep 10, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment was marked as resolved.

@lqd

This comment was marked as resolved.

@mati865

This comment was marked as resolved.

@mati865

This comment was marked as resolved.

@mati865

This comment was marked as resolved.

rust-bors bot added a commit that referenced this pull request Sep 11, 2025
[nothing to see here yet] Experiments
@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment was marked as off-topic.

@rust-bors

This comment was marked as resolved.

@rust-log-analyzer

This comment has been minimized.

@mati865

This comment was marked as resolved.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Sep 12, 2025
[nothing to see here yet] Experiments
@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment was marked as resolved.

@rust-timer

This comment has been minimized.

@mati865
Copy link
Member Author

mati865 commented Sep 14, 2025

One last thing to try.
@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Sep 14, 2025
[nothing to see here yet] Experiments
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 14, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Sep 14, 2025

☀️ Try build successful (CI)
Build commit: 87248e1 (87248e14656411e3502b645bd0deff132c90db6c, parent: ddaf12390d3ffb7d5ba74491a48f3cd528e5d777)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (87248e1): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.1% [-8.2%, -0.3%] 29
Improvements ✅
(secondary)
-1.8% [-8.1%, -0.1%] 72
All ❌✅ (primary) -3.1% [-8.2%, -0.3%] 29

Max RSS (memory usage)

Results (primary -8.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-8.1% [-11.8%, -4.3%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -8.1% [-11.8%, -4.3%] 2

Cycles

Results (primary 13.4%, secondary 10.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
13.4% [2.4%, 30.0%] 9
Regressions ❌
(secondary)
10.7% [2.0%, 29.4%] 29
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 13.4% [2.4%, 30.0%] 9

Binary size

Results (primary -1.2%, secondary -2.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.9% [0.9%, 0.9%] 4
Regressions ❌
(secondary)
1.3% [0.8%, 1.4%] 4
Improvements ✅
(primary)
-1.5% [-3.3%, -0.4%] 27
Improvements ✅
(secondary)
-2.8% [-4.9%, -0.0%] 49
All ❌✅ (primary) -1.2% [-3.3%, 0.9%] 31

Bootstrap: 473.077s -> 516.803s (9.24%)
Artifact size: 390.10 MiB -> 390.15 MiB (0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 14, 2025
@mati865
Copy link
Member Author

mati865 commented Sep 15, 2025

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Sep 15, 2025
[nothing to see here yet] Experiments
@rust-bors

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 15, 2025
@rust-log-analyzer
Copy link
Collaborator

The job tidy failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
tidy check
Checking tidy rustdoc_json...
No error code explanation was removed!
tidy: Skipping binary file check, read-only filesystem
##[error]tidy error: /checkout/compiler/rustc_target/src/spec/mod.rs:131: TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10' and 'venv'
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10' and 'virtualenv'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (25.2)
linting python files
---
linting javascript files and applying suggestions
Running eslint on rustdoc JS files
info: ES-Check: there were no ES version matching errors!  🎉
typechecking javascript files
some tidy checks failed
Command `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/rust-tidy /checkout /checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo /checkout/obj/build 4 /node/bin/npm --extra-checks=py,cpp,js,spellcheck` failed with exit code 1
Created at: src/bootstrap/src/core/build_steps/tool.rs:1657:23
Executed at: src/bootstrap/src/core/build_steps/test.rs:1281:29

Command has failed. Rerun with -v to see more details.
Bootstrap failed while executing `test src/tools/tidy tidyselftest --extra-checks=py,cpp,js,spellcheck`
Build completed unsuccessfully in 0:03:24
  local time: Mon Sep 15 10:01:48 UTC 2025
  network time: Mon, 15 Sep 2025 10:01:48 GMT
##[error]Process completed with exit code 1.

@rust-bors
Copy link

rust-bors bot commented Sep 15, 2025

☀️ Try build successful (CI)
Build commit: 8d02507 (8d02507f77424e2db34b91eaac187b532c4f3244, parent: d1ed52b1f5b78bf66127b670af813b84d57aeedb)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (8d02507): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.2% [-8.9%, -0.4%] 29
Improvements ✅
(secondary)
-1.9% [-7.6%, -0.1%] 71
All ❌✅ (primary) -3.2% [-8.9%, -0.4%] 29

Max RSS (memory usage)

Results (primary -5.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-5.7% [-12.4%, -0.6%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -5.7% [-12.4%, -0.6%] 3

Cycles

Results (primary 9.0%, secondary 10.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
11.0% [2.3%, 29.2%] 11
Regressions ❌
(secondary)
11.2% [2.2%, 31.7%] 28
Improvements ✅
(primary)
-2.2% [-2.2%, -2.2%] 2
Improvements ✅
(secondary)
-1.9% [-2.3%, -1.4%] 2
All ❌✅ (primary) 9.0% [-2.2%, 29.2%] 13

Binary size

Results (primary -1.1%, secondary -1.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.9% [0.9%, 0.9%] 4
Regressions ❌
(secondary)
1.3% [0.8%, 1.4%] 4
Improvements ✅
(primary)
-1.4% [-3.3%, -0.4%] 31
Improvements ✅
(secondary)
-1.8% [-4.9%, -0.0%] 85
All ❌✅ (primary) -1.1% [-3.3%, 0.9%] 35

Bootstrap: 473.872s -> 517.604s (9.23%)
Artifact size: 390.16 MiB -> 390.17 MiB (0.00%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 15, 2025
@mati865
Copy link
Member Author

mati865 commented Sep 19, 2025

Summary of Wild compared to LLD:

Keep in mind those are wall-times which are prone to be noisy, so focus on the general tendencies, rather than specific cases.

@mati865 mati865 closed this Sep 19, 2025
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 19, 2025
@mati865 mati865 changed the title [nothing to see here yet] Experiments Wild experiments Sep 23, 2025
@hkBst
Copy link
Member

hkBst commented Sep 25, 2025

I was puzzled by bootstrap taking longer, but that is because it now also includes the time to build wild, right?

@mati865
Copy link
Member Author

mati865 commented Sep 25, 2025

Yes, I made it a part of rustc to make the benchmarking simple. In the proper setup, it'd be an optional component that can be enabled or disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants