Closed layershifter closed 4 years ago
Warnings | |
---|---|
:warning: | 2 perf regressions detected |
Status | Scenario | Fluent TPI | Fabric TPI | Ratio | Iterations | Ticks |
---|---|---|---|---|---|---|
🔧 | Avatar.Fluent | 0.46 | 0.36 | 1.28:1 | 2000 | 920 |
🎯 | Button.Fluent | 0.12 | 0.16 | 0.75:1 | 1000 | 117 |
🔧 | Checkbox.Fluent | 0.74 | 0.28 | 2.64:1 | 1000 | 740 |
🔧 | Dialog.Fluent | 0.32 | 0.16 | 2:1 | 5000 | 1605 |
🔧 | Dropdown.Fluent | 3.19 | 0.34 | 9.38:1 | 1000 | 3186 |
🔧 | Icon.Fluent | 0.12 | 0.03 | 4:1 | 5000 | 591 |
🦄 | Image.Fluent | 0.04 | 0.07 | 0.57:1 | 5000 | 220 |
🔧 | Slider.Fluent | 1.4 | 0.29 | 4.83:1 | 1000 | 1402 |
🔧 | Text.Fluent | 0.05 | 0.02 | 2.5:1 | 5000 | 241 |
🦄 | Tooltip.Fluent | 0.09 | 14.11 | 0.01:1 | 5000 | 430 |
🔧 Needs work 🎯 On target 🦄 Amazing
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
StatusMinimalPerf.default | 231 | 228 | 1.01:1 |
Tooltip.Fluent | 430 | 591 | 0.73:1 |
Generated by :no_entry_sign: dangerJS
BREAKING CHANGES
As in other components converted to hooks
TooltipContent
now passes only these props to styles:placement
,pointing
,open
.Performance
I used an example with 100 opened
Tooltip
s to measure rendering speed. And it almost 2 times faster because of enabled caching (#2309).Before
After without caching
It's also a bit faster because
Tooltip
now completely omits styles computations.After