-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Use jemalloc for Clippy #142286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use jemalloc for Clippy #142286
Conversation
Some changes occurred in src/tools/opt-dist cc @Kobzol Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
@bors2 try (Creating artifacts for local benchmarks) |
[experiment] Use jemalloc for Clippy The tool macros are annoying, we should IMO just get rid of them, create separate steps for each tool and (re)use some builders in them to share the build code. r? `@ghost`
Confirmed that previously, Clippy used glibc malloc, but with this PR, it uses jemalloc, using cargo run --bin collector profile_local cachegrind `rustup +df45868f04767f218ec5cc3d611eab803eaf32ec which rustc` --profiles Clippy --scenarios Full --exact-match helloworld |
r? @flip1995 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I want r? @blyxyas to take another look. r=me if it looks good to you too 👍
I'm finding some differences in my results (although I'm checking them directly with the cachegrind annotations, not through the UI). I'll perform some more benchmarks but I have some questions. In my outputs cargo is 8.6% better, but for example syn is considerably worse (12.16b -> 13.01b), and serde is too (24b -> 28b). Did you use I'll make sure that this is not a result from some background noise today, just sharing my current results. Let's hope that I can figure it out and make sure that these results are just background noise. NOTE: Seems that although the benchmark fails, |
I just used the default |
Finally got to benchmark it on a separate server, and in this server with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! ❤️
Thank you for the benchmark! @bors r=flip1995,blyxyas rollup=never |
So nostalgic using bors again |
Use jemalloc for Clippy The tool macros are annoying, we should IMO just get rid of them, create separate steps for each tool and (re)use some builders in them to share the build code. r? `@ghost`
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
Looks like some spurious Windows file path error.. @bors retry |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 5b74275 (parent) -> 18491d5 (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 18491d5be00eb3ed2f1ccee2ac5b792694f2a7a0 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (18491d5): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 1.6%, secondary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -3.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 692.705s -> 691.482s (-0.18%) |
The tool macros are annoying, we should IMO just get rid of them, create separate steps for each tool and (re)use some builders in them to share the build code.
r? @ghost