Skip to content

Commit 3f0fc03

Browse files
authored
Merge pull request #1962 from rylev/perf-triage-2024-08-13
Add perf triage for 2024-08-13
2 parents 47dcf23 + 3d68818 commit 3f0fc03

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

triage/2024-08-13.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# 2024-08-13 Triage Log
2+
3+
A big week for compiler performance brought on mostly by statically linking the std library into `rustc_driver` instead of dynamic linking. This overshadows all other improvements and regressions that were seen this week.
4+
5+
Triage done by **@rylev**.
6+
Revision range: [8c7e0e16..9cb1998e](https://perf.rust-lang.org/?start=8c7e0e160831866bc1a40691a39455aac21271c0&end=9cb1998ea15e179482504e07cad8fa121e169a32&absolute=false&stat=instructions%3Au)
7+
8+
**Summary**:
9+
10+
| (instructions:u) | mean | range | count |
11+
|:----------------------------------:|:-----:|:--------------:|:-----:|
12+
| Regressions ❌ <br /> (primary) | - | - | 0 |
13+
| Regressions ❌ <br /> (secondary) | - | - | 0 |
14+
| Improvements ✅ <br /> (primary) | -1.3% | [-2.9%, -0.2%] | 217 |
15+
| Improvements ✅ <br /> (secondary) | -1.4% | [-4.9%, -0.2%] | 196 |
16+
| All ❌✅ (primary) | -1.3% | [-2.9%, -0.2%] | 217 |
17+
18+
19+
2 Regressions, 2 Improvements, 2 Mixed; 1 of them in rollups
20+
35 artifact comparisons made in total
21+
22+
#### Regressions
23+
24+
Rollup of 7 pull requests [#128768](https://github.com/rust-lang/rust/pull/128768) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=2f3dc46465c04d10cb74d34b1bd80c3ebfdc05bf&end=6a2cd0d50c9b7e1243d948641758c76d1f22e25e&stat=instructions:u)
25+
26+
| (instructions:u) | mean | range | count |
27+
|:----------------------------------:|:----:|:------------:|:-----:|
28+
| Regressions ❌ <br /> (primary) | 0.4% | [0.4%, 0.4%] | 1 |
29+
| Regressions ❌ <br /> (secondary) | 0.3% | [0.2%, 0.4%] | 11 |
30+
| Improvements ✅ <br /> (primary) | - | - | 0 |
31+
| Improvements ✅ <br /> (secondary) | - | - | 0 |
32+
| All ❌✅ (primary) | 0.4% | [0.4%, 0.4%] | 1 |
33+
- All docs regressions caused by [#128417](https://github.com/rust-lang/rust/pull/128417) which is simply just documenting more.
34+
35+
36+
Stabilize `min_exhaustive_patterns` [#122792](https://github.com/rust-lang/rust/pull/122792) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=48090b11b52bd841fa89082cdaa4c139f11995f7&end=8291d68d926cedcdc77973e4c68f0828156d5bd8&stat=instructions:u)
37+
38+
| (instructions:u) | mean | range | count |
39+
|:----------------------------------:|:----:|:------------:|:-----:|
40+
| Regressions ❌ <br /> (primary) | 0.8% | [0.3%, 1.5%] | 13 |
41+
| Regressions ❌ <br /> (secondary) | - | - | 0 |
42+
| Improvements ✅ <br /> (primary) | - | - | 0 |
43+
| Improvements ✅ <br /> (secondary) | - | - | 0 |
44+
| All ❌✅ (primary) | 0.8% | [0.3%, 1.5%] | 13 |
45+
- Seems this has a negative impact on the performance of coherence checking which I imagine is expected.
46+
- Confirming with the author/reviewer.
47+
48+
49+
#### Improvements
50+
51+
Cache supertrait outlives of impl header for soundness check [#128746](https://github.com/rust-lang/rust/pull/128746) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=7347f8e4e007fbb3712364bc174476f5f55a6da4&end=48090b11b52bd841fa89082cdaa4c139f11995f7&stat=instructions:u)
52+
53+
| (instructions:u) | mean | range | count |
54+
|:----------------------------------:|:-----:|:--------------:|:-----:|
55+
| Regressions ❌ <br /> (primary) | 0.2% | [0.2%, 0.2%] | 1 |
56+
| Regressions ❌ <br /> (secondary) | 0.0% | [0.0%, 0.0%] | 1 |
57+
| Improvements ✅ <br /> (primary) | -0.5% | [-1.3%, -0.2%] | 69 |
58+
| Improvements ✅ <br /> (secondary) | -1.8% | [-3.8%, -0.2%] | 30 |
59+
| All ❌✅ (primary) | -0.5% | [-1.3%, 0.2%] | 70 |
60+
61+
62+
Link `std` statically in `rustc_driver` [#122362](https://github.com/rust-lang/rust/pull/122362) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=5e5ec8af1b34a71fbf0063586a70bae7460a892a&end=9cb1998ea15e179482504e07cad8fa121e169a32&stat=instructions:u)
63+
64+
| (instructions:u) | mean | range | count |
65+
|:----------------------------------:|:-----:|:--------------:|:-----:|
66+
| Regressions ❌ <br /> (primary) | - | - | 0 |
67+
| Regressions ❌ <br /> (secondary) | - | - | 0 |
68+
| Improvements ✅ <br /> (primary) | -1.0% | [-2.0%, -0.2%] | 229 |
69+
| Improvements ✅ <br /> (secondary) | -1.0% | [-2.0%, -0.2%] | 222 |
70+
| All ❌✅ (primary) | -1.0% | [-2.0%, -0.2%] | 229 |
71+
72+
73+
#### Mixed
74+
75+
Only walk ribs to collect possibly shadowed params if we are adding params in our new rib [#128550](https://github.com/rust-lang/rust/pull/128550) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=86e7875c13f048ed03d413aa83215df94f0467e8&end=0d65e5a1806db2662ba6a34d89c3b4bc506fb59a&stat=instructions:u)
76+
77+
| (instructions:u) | mean | range | count |
78+
|:----------------------------------:|:-----:|:--------------:|:-----:|
79+
| Regressions ❌ <br /> (primary) | - | - | 0 |
80+
| Regressions ❌ <br /> (secondary) | 2.2% | [2.2%, 2.2%] | 1 |
81+
| Improvements ✅ <br /> (primary) | -0.6% | [-2.0%, -0.2%] | 31 |
82+
| Improvements ✅ <br /> (secondary) | -0.3% | [-0.3%, -0.2%] | 6 |
83+
| All ❌✅ (primary) | -0.6% | [-2.0%, -0.2%] | 31 |
84+
- Regression seems to be noise.
85+
86+
87+
Apply "polymorphization at home" to RawVec [#126793](https://github.com/rust-lang/rust/pull/126793) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=9cb1998ea15e179482504e07cad8fa121e169a32&end=ba33d7b0ae7e8081a59ca8f768202290c6903405&stat=instructions:u)
88+
89+
| (instructions:u) | mean | range | count |
90+
|:----------------------------------:|:-----:|:--------------:|:-----:|
91+
| Regressions ❌ <br /> (primary) | 0.5% | [0.2%, 1.6%] | 98 |
92+
| Regressions ❌ <br /> (secondary) | 0.4% | [0.1%, 1.2%] | 125 |
93+
| Improvements ✅ <br /> (primary) | -1.0% | [-3.5%, -0.2%] | 51 |
94+
| Improvements ✅ <br /> (secondary) | -1.3% | [-2.9%, -0.3%] | 13 |
95+
| All ❌✅ (primary) | -0.0% | [-3.5%, 1.6%] | 149 |
96+
- "there's a bunch of instruction regressions -- improvements too, but fewer of those -- but looking at cycles, wall time, bootstrap, and binary size it looks consistently great. And the overall approach is good, so there should be space to get smaller improvements with tweaks to things like mir inlining"
97+

0 commit comments

Comments
 (0)