|
| 1 | +# 2026-01-12 Triage Log |
| 2 | + |
| 3 | +Fairly quiet week, most changes due to new features which naturally carry some |
| 4 | +overhead for existing programs. Overall though an improvement. |
| 5 | + |
| 6 | +Triage done by **@simulacrum**. |
| 7 | +Revision range: [7c04f5d2..840245e9](https://perf.rust-lang.org/?start=7c04f5d216b5dcfff0a55fc20327a1c519004699&end=840245e91b90f22adf9f26d0a0cd98c2416cdef3&absolute=false&stat=instructions%3Au) |
| 8 | + |
| 9 | +**Summary**: |
| 10 | + |
| 11 | +| (instructions:u) | mean | range | count | |
| 12 | +|:----------------------------------:|:-----:|:--------------:|:-----:| |
| 13 | +| Regressions ❌ <br /> (primary) | 0.5% | [0.2%, 2.6%] | 20 | |
| 14 | +| Regressions ❌ <br /> (secondary) | 0.4% | [0.1%, 2.5%] | 58 | |
| 15 | +| Improvements ✅ <br /> (primary) | -0.8% | [-6.6%, -0.2%] | 98 | |
| 16 | +| Improvements ✅ <br /> (secondary) | -0.5% | [-1.8%, -0.1%] | 46 | |
| 17 | +| All ❌✅ (primary) | -0.6% | [-6.6%, 2.6%] | 118 | |
| 18 | + |
| 19 | + |
| 20 | +3 Regressions, 1 Improvement, 4 Mixed; 2 of them in rollups |
| 21 | +31 artifact comparisons made in total |
| 22 | + |
| 23 | +#### Regressions |
| 24 | + |
| 25 | +Rollup of 10 pull requests [#150726](https://github.com/rust-lang/rust/pull/150726) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=74fd7516dac6e7be0e561dddb9bee4e860598f07&end=4d73a008eaf6ba3ca067a3221e5c00602e33a5f2&stat=instructions:u) |
| 26 | + |
| 27 | +| (instructions:u) | mean | range | count | |
| 28 | +|:----------------------------------:|:----:|:------------:|:-----:| |
| 29 | +| Regressions ❌ <br /> (primary) | 0.4% | [0.2%, 0.8%] | 13 | |
| 30 | +| Regressions ❌ <br /> (secondary) | 0.2% | [0.1%, 0.3%] | 6 | |
| 31 | +| Improvements ✅ <br /> (primary) | - | - | 0 | |
| 32 | +| Improvements ✅ <br /> (secondary) | - | - | 0 | |
| 33 | +| All ❌✅ (primary) | 0.4% | [0.2%, 0.8%] | 13 | |
| 34 | + |
| 35 | +This is due to "Impls and impl items inherit dead_code lint level of the |
| 36 | +corresponding traits and trait items" |
| 37 | +[#144113](https://github.com/rust-lang/rust/pull/144113) which adds a new |
| 38 | +'feature' to the lint system and so is expected to carry some cost. The costs |
| 39 | +look reasonable enough (small, only ~1 primary benchmark affected), so marking |
| 40 | +as triaged. |
| 41 | + |
| 42 | +Add allocator parameter to HashMap [#148545](https://github.com/rust-lang/rust/pull/148545) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=4586feb998521343b91c554adbb11ba30547d67a&end=31cd367b9ca1ce359268e7adf4ea540408c0ad85&stat=instructions:u) |
| 43 | + |
| 44 | +| (instructions:u) | mean | range | count | |
| 45 | +|:----------------------------------:|:----:|:------------:|:-----:| |
| 46 | +| Regressions ❌ <br /> (primary) | 0.3% | [0.2%, 0.5%] | 3 | |
| 47 | +| Regressions ❌ <br /> (secondary) | 0.5% | [0.5%, 0.5%] | 1 | |
| 48 | +| Improvements ✅ <br /> (primary) | - | - | 0 | |
| 49 | +| Improvements ✅ <br /> (secondary) | - | - | 0 | |
| 50 | +| All ❌✅ (primary) | 0.3% | [0.2%, 0.5%] | 3 | |
| 51 | + |
| 52 | +Expected to cause regressions (actually surprised it's so few). Marked as triaged. |
| 53 | + |
| 54 | +Rollup of 14 pull requests [#150957](https://github.com/rust-lang/rust/pull/150957) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=08f833aa179952037d5d0c5d949d4c3ec18ec212&end=1279939b38db460bd3844a6ca44e94961a48333d&stat=instructions:u) |
| 55 | + |
| 56 | +| (instructions:u) | mean | range | count | |
| 57 | +|:----------------------------------:|:----:|:------------:|:-----:| |
| 58 | +| Regressions ❌ <br /> (primary) | 0.1% | [0.1%, 0.2%] | 4 | |
| 59 | +| Regressions ❌ <br /> (secondary) | 0.4% | [0.1%, 1.0%] | 20 | |
| 60 | +| Improvements ✅ <br /> (primary) | - | - | 0 | |
| 61 | +| Improvements ✅ <br /> (secondary) | - | - | 0 | |
| 62 | +| All ❌✅ (primary) | 0.1% | [0.1%, 0.2%] | 4 | |
| 63 | + |
| 64 | +Kicked off [perf runs](https://github.com/rust-lang/rust/pull/150957#issuecomment-3738810175) on |
| 65 | +component PRs to investigate root cause. If it is related to attribute parsing |
| 66 | +it's likely these regressions should just be accepted though. |
| 67 | + |
| 68 | +#### Improvements |
| 69 | + |
| 70 | +resolve: Use `Macros20NormalizedIdent` in more interfaces [#150741](https://github.com/rust-lang/rust/pull/150741) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=7c41ee66db9d08e3989858acaefa1c72a6a88518&end=b68e16cfc0e9f8b29c9ec41bfa6ab0a637eff19c&stat=instructions:u) |
| 71 | + |
| 72 | +| (instructions:u) | mean | range | count | |
| 73 | +|:----------------------------------:|:-----:|:--------------:|:-----:| |
| 74 | +| Regressions ❌ <br /> (primary) | - | - | 0 | |
| 75 | +| Regressions ❌ <br /> (secondary) | 0.6% | [0.6%, 0.6%] | 1 | |
| 76 | +| Improvements ✅ <br /> (primary) | -0.3% | [-0.6%, -0.1%] | 114 | |
| 77 | +| Improvements ✅ <br /> (secondary) | -0.4% | [-1.2%, -0.1%] | 63 | |
| 78 | +| All ❌✅ (primary) | -0.3% | [-0.6%, -0.1%] | 114 | |
| 79 | + |
| 80 | + |
| 81 | +#### Mixed |
| 82 | + |
| 83 | +`Vec::push` in consts MVP [#147893](https://github.com/rust-lang/rust/pull/147893) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=da476f1942868cdf94ed88b01ea31170cfe95047&end=74fd7516dac6e7be0e561dddb9bee4e860598f07&stat=instructions:u) |
| 84 | + |
| 85 | +| (instructions:u) | mean | range | count | |
| 86 | +|:----------------------------------:|:-----:|:--------------:|:-----:| |
| 87 | +| Regressions ❌ <br /> (primary) | 0.3% | [0.3%, 0.4%] | 3 | |
| 88 | +| Regressions ❌ <br /> (secondary) | 0.2% | [0.1%, 0.4%] | 5 | |
| 89 | +| Improvements ✅ <br /> (primary) | -0.2% | [-0.2%, -0.2%] | 1 | |
| 90 | +| Improvements ✅ <br /> (secondary) | -1.8% | [-1.9%, -1.7%] | 2 | |
| 91 | +| All ❌✅ (primary) | 0.2% | [-0.2%, 0.4%] | 4 | |
| 92 | + |
| 93 | +Looking at a cranelift profile it loosely looks like we're spending more time |
| 94 | +in LLVM, maybe because of the extra indirection though the `const_eval_select`? |
| 95 | +Though I don't see obvious signs of this in godbolt diffs vs beta. |
| 96 | + |
| 97 | +In either case, marking as triaged as further investigation doesn't seem |
| 98 | +warranted given magnitude and general desire for this feature. |
| 99 | + |
| 100 | +Port `#[cfg]` and `#[cfg_attr]` trace attributes to the new attribute parsers [#150310](https://github.com/rust-lang/rust/pull/150310) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=0aced202c24f9356c1640fc0a7f07433b3a7124f&end=d9617c8d9a55773a96b61ba3a4acb107d65615c1&stat=instructions:u) |
| 101 | + |
| 102 | +| (instructions:u) | mean | range | count | |
| 103 | +|:----------------------------------:|:-----:|:--------------:|:-----:| |
| 104 | +| Regressions ❌ <br /> (primary) | 0.3% | [0.2%, 0.6%] | 5 | |
| 105 | +| Regressions ❌ <br /> (secondary) | 0.1% | [0.1%, 0.1%] | 1 | |
| 106 | +| Improvements ✅ <br /> (primary) | -0.3% | [-0.4%, -0.1%] | 13 | |
| 107 | +| Improvements ✅ <br /> (secondary) | -0.2% | [-0.3%, -0.1%] | 11 | |
| 108 | +| All ❌✅ (primary) | -0.1% | [-0.4%, 0.6%] | 18 | |
| 109 | + |
| 110 | +Expected regressions from attribute parsing rework. Marking as triaged. This |
| 111 | +also shrunk crate metadata a good bit, e.g., [2% on `syn`](https://perf.rust-lang.org/compare.html?start=0aced202c24f9356c1640fc0a7f07433b3a7124f&end=d9617c8d9a55773a96b61ba3a4acb107d65615c1&stat=size:crate_metadata). |
| 112 | + |
| 113 | +Stop emitting UbChecks on every Vec→Slice [#150265](https://github.com/rust-lang/rust/pull/150265) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=3fda0e426ca17b0baa0d6e765a0d23f487350573&end=85d0cdfe3489ff1a4b86daeddba6fcf82b47bd65&stat=instructions:u) |
| 114 | + |
| 115 | +| (instructions:u) | mean | range | count | |
| 116 | +|:----------------------------------:|:-----:|:--------------:|:-----:| |
| 117 | +| Regressions ❌ <br /> (primary) | 1.3% | [0.1%, 2.6%] | 3 | |
| 118 | +| Regressions ❌ <br /> (secondary) | 2.5% | [2.5%, 2.5%] | 1 | |
| 119 | +| Improvements ✅ <br /> (primary) | -1.5% | [-5.8%, -0.1%] | 25 | |
| 120 | +| Improvements ✅ <br /> (secondary) | -0.5% | [-1.4%, -0.1%] | 6 | |
| 121 | +| All ❌✅ (primary) | -1.2% | [-5.8%, 2.6%] | 28 | |
| 122 | + |
| 123 | +Mixed results but overall an improvement. |
| 124 | + |
| 125 | +Also hash spans inside the same file as relative (V2) [#150540](https://github.com/rust-lang/rust/pull/150540) [(Comparison Link)](https://perf.rust-lang.org/compare.html?start=9bc8b40bc314b74e1d5e5ab21a0df39c55a34806&end=08f833aa179952037d5d0c5d949d4c3ec18ec212&stat=instructions:u) |
| 126 | + |
| 127 | +| (instructions:u) | mean | range | count | |
| 128 | +|:----------------------------------:|:-----:|:--------------:|:-----:| |
| 129 | +| Regressions ❌ <br /> (primary) | 0.3% | [0.1%, 0.4%] | 6 | |
| 130 | +| Regressions ❌ <br /> (secondary) | 0.3% | [0.1%, 0.7%] | 27 | |
| 131 | +| Improvements ✅ <br /> (primary) | -1.2% | [-6.5%, -0.2%] | 20 | |
| 132 | +| Improvements ✅ <br /> (secondary) | -0.3% | [-0.5%, -0.2%] | 8 | |
| 133 | +| All ❌✅ (primary) | -0.9% | [-6.5%, 0.4%] | 26 | |
| 134 | + |
| 135 | +See [author's note here](https://github.com/rust-lang/rust/pull/150540#issuecomment-3734528974): |
| 136 | + |
| 137 | +> Matches the expected performance, net positive |
0 commit comments