Skip to content

Commit 2624092

Browse files
authored
Merge pull request #1278 from rylev/triage-2022-04-05
Add triage for 2022-04-05
2 parents 04fccd8 + 4a35f96 commit 2624092

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

β€Žtriage/2022-04-05.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# 2022-04-05 Triage Log
2+
3+
A somewhat quiet week with only a few improvements and regressions, but with improvements ever so slightly edging out regressions. The biggest regression was in a rollup which makes investigation difficult though it looks like its in trait resolution which impacts crates that do a lot of that such as diesel. The biggest improvement comes from work done by the performance team (more specifically @nnethercote) to improve `macro_rules` parsing which can lead to sizeable performance gains for crates using the ["token munching"](https://danielkeep.github.io/tlborm/book/pat-incremental-tt-munchers.html) pattern in `macro_rules`.
4+
5+
Triage done by **@rylev**.
6+
Revision range: [3e7514670db841a7f0d7656f3b13b1c8b2c11599..949b98cab8a186b98bf87e64374b8d0848c55271](https://perf.rust-lang.org/?start=3e7514670db841a7f0d7656f3b13b1c8b2c11599&end=949b98cab8a186b98bf87e64374b8d0848c55271&absolute=false&stat=instructions%3Au)
7+
8+
2 Regressions, 2 Improvements, 1 Mixed; 2 of them in rollups
9+
37 comparisons made in total
10+
11+
#### Regressions
12+
13+
Make lowering pull-based [#90204](https://github.com/rust-lang/rust/pull/90204) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=03314912f1361af6b39383958b5aa1b4aed61c26&end=bd1a8692f6260fd59dba1e0fa187092a1c354b2e&stat=instructions:u)
14+
| | Regressions 😿 <br />(primary) | Regressions 😿 <br />(secondary) | Improvements πŸŽ‰ <br />(primary) | Improvements πŸŽ‰ <br />(secondary) | All 😿 πŸŽ‰ <br />(primary) |
15+
|:---:|:---:|:---:|:---:|:---:|:---:|
16+
| count | 2 | 33 | 0 | 0 | 2 |
17+
| mean | 0.3% | 0.7% | N/A | N/A | 0.3% |
18+
| max | 0.4% | 1.7% | N/A | N/A | 0.4% |
19+
- This is necessary for unlocking incremental lowering. [It was justified as acceptable](https://github.com/rust-lang/rust/pull/90204#pullrequestreview-878629128) since the performance will hopefully be won back (in the incremental case) when lowering is made incremental and the impact on real world crates is pretty small (only 2 regressions at an average of 0.3%).
20+
21+
22+
Rollup of 7 pull requests [#95662](https://github.com/rust-lang/rust/pull/95662) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=60e50fc1cfe0bb693a5f4f93eb83ef70854531e3&end=a22cf2af0510b3ec4cbb19c3de11d3d8291349d9&stat=instructions:u)
23+
| | Regressions 😿 <br />(primary) | Regressions 😿 <br />(secondary) | Improvements πŸŽ‰ <br />(primary) | Improvements πŸŽ‰ <br />(secondary) | All 😿 πŸŽ‰ <br />(primary) |
24+
|:---:|:---:|:---:|:---:|:---:|:---:|
25+
| count | 20 | 13 | 0 | 6 | 20 |
26+
| mean | 0.8% | 0.4% | N/A | -0.4% | 0.8% |
27+
| max | 2.0% | 0.7% | N/A | -0.5% | 2.0% |
28+
- It's not clear what the underlying cause could be as it seems that the issues are coming in trait selection and there are several PRs that touch trait selection (albeit for diagnostics purposes). I've left [a comment](https://github.com/rust-lang/rust/pull/95662#issuecomment-1088686029) to see if we can investigate further.
29+
30+
#### Improvements
31+
32+
Yet more `parse_tt` improvements [#95425](https://github.com/rust-lang/rust/pull/95425) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=bb5c437a2ce9ccf2204c974300c5ea9eb32d3635&end=c5cf08d37b85f953b132951e868df5b924250fdc&stat=instructions:u)
33+
| | Regressions 😿 <br />(primary) | Regressions 😿 <br />(secondary) | Improvements πŸŽ‰ <br />(primary) | Improvements πŸŽ‰ <br />(secondary) | All 😿 πŸŽ‰ <br />(primary) |
34+
|:---:|:---:|:---:|:---:|:---:|:---:|
35+
| count | 1 | 0 | 30 | 23 | 31 |
36+
| mean | 0.3% | N/A | -0.9% | -2.0% | -0.9% |
37+
| max | 0.3% | N/A | -2.3% | -6.2% | -2.3% |
38+
39+
40+
Add debug assertions to some unsafe functions [#92686](https://github.com/rust-lang/rust/pull/92686) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=15a242a432c9c40a60def102209a5d40900b7b9d&end=168a0209002fef203e83989ff641c1b3e1a51859&stat=instructions:u)
41+
| | Regressions 😿 <br />(primary) | Regressions 😿 <br />(secondary) | Improvements πŸŽ‰ <br />(primary) | Improvements πŸŽ‰ <br />(secondary) | All 😿 πŸŽ‰ <br />(primary) |
42+
|:---:|:---:|:---:|:---:|:---:|:---:|
43+
| count | 1 | 0 | 17 | 19 | 18 |
44+
| mean | 0.6% | N/A | -0.5% | -0.4% | -0.4% |
45+
| max | 0.6% | N/A | -1.4% | -0.8% | -1.4% |
46+
47+
48+
#### Mixed
49+
50+
A new matcher representation for use in `parse_tt` [#95555](https://github.com/rust-lang/rust/pull/95555) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=d5139f44690e7765df801ca33a7f627d128ac9e2&end=6a9080b25e73d26aae94c3f6a13b31de58e66b5a&stat=instructions:u)
51+
| | Regressions 😿 <br />(primary) | Regressions 😿 <br />(secondary) | Improvements πŸŽ‰ <br />(primary) | Improvements πŸŽ‰ <br />(secondary) | All 😿 πŸŽ‰ <br />(primary) |
52+
|:---:|:---:|:---:|:---:|:---:|:---:|
53+
| count | 3 | 10 | 18 | 11 | 21 |
54+
| mean | 0.4% | 1.0% | -1.0% | -2.4% | -0.8% |
55+
| max | 0.4% | 2.8% | -2.0% | -4.6% | -2.0% |
56+
- This was already [justified](https://github.com/rust-lang/rust/pull/95555#issuecomment-1088070142) as being acceptable since the real world crates that suffer from regressions are exercising some of the worst case scenario execution paths. There is an attempt to address this in a follow up ([#95669](https://github.com/rust-lang/rust/pull/95669)). In any case, the improvements outweigh the regressions in both magnitude and number.

0 commit comments

Comments
Β (0)