Remove redundant imports for making benchmarking results more representative of #117772. - #1793
Remove redundant imports for making benchmarking results more representative of #117772.#1793surechen wants to merge 1 commit into
Conversation
For making benchmarking results more representative of #117772.
|
r? @Kobzol |
|
Hi :) I'm not sure if I understand the motivation of this PR. What do you mean by "making results more representative"? We usually don't modify the benchmarks here to make individual PRs have less performance impact. |
Hello, thank you. |
|
I agree with @Kobzol: we generally avoid changing the benchmarks as much as possible. If the compiler got slower because it's doing more checking, then it got slower and we shouldn't hide that. |
|
Indeed, our benchmarks probably generate new warnings because of compiler changes all the time, but that's not a reason to change the benchmarks. We try to only modify them when they actually stop compiling, e.g. because of some soundness bugs being fixed in backwards-incompatible way. |
|
@surechen Could you please point me to the comment made by petrochenkov? I couldn't find it. |
Ok. here: |
|
More relevant comment - rust-lang/rust#117772 (comment). If the benchmarks are not supposed to be changed, then we'll need to just acknowledge where the perf regressions in rust-lang/rust#117772 come from and mark them as triaged. |
I see. So, I'm perfectly fine with triaging the regressions from that PR, it is doing more work after all. In addition to that, if we want to examine the performance of the PR in more detail, I would suggest running rustc-perf locally with the original benchmarks and with the modified benchmarks, and comparing the difference. We can't easily modify the set of benchmarks on CI easily to do this test on the benchmark server. |
Hi, petrochenkov, Kobzol , nnethercote |
For making benchmarking results more representative of rust-117772.