| Summary: | Make MutableStylePropertySet::findPropertyIndex faster | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bfulgham, koivisto, ntim, simon.fraser, thorton, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-01-13 09:35:53 PST
These numbers are from WebKit Trunk (Release - 259178@main): Description: Measures performance of the CSS style getter and setter methods (elem.style.(getPropertyValue|removeProperty|setProperty)). Time: values 14527.112232030273, 14436.09022556391, 14563.843236409608, 14508.81612090681, 14454.203262233392, 14545.454545454579, 14490.566037735865, 14563.843236409624, 14582.278481012676, 14490.566037735849, 14472.361809045226, 14563.843236409608, 14545.454545454546, 14563.84323640954, 14527.112232030231, 14582.278481012625, 14508.816120906768, 14527.112232030231, 14508.816120906835, 14563.843236409675 runs/s avg 14526.312733305393 runs/s median 14527.112232030253 runs/s stdev 42.15659058359132 runs/s min 14436.09022556391 runs/s max 14582.278481012676 runs/s (In reply to Ahmad Saleem from comment #2) > These numbers are from WebKit Trunk (Release - 259178@main): > > Description: Measures performance of the CSS style getter and setter methods > (elem.style.(getPropertyValue|removeProperty|setProperty)). > > Time: > values 14527.112232030273, 14436.09022556391, 14563.843236409608, > 14508.81612090681, 14454.203262233392, 14545.454545454579, > 14490.566037735865, 14563.843236409624, 14582.278481012676, > 14490.566037735849, 14472.361809045226, 14563.843236409608, > 14545.454545454546, 14563.84323640954, 14527.112232030231, > 14582.278481012625, 14508.816120906768, 14527.112232030231, > 14508.816120906835, 14563.843236409675 runs/s > avg 14526.312733305393 runs/s > median 14527.112232030253 runs/s > stdev 42.15659058359132 runs/s > min 14436.09022556391 runs/s > max 14582.278481012676 runs/s I built with same trunk with this patch new build and these are numbers: Description: Measures performance of the CSS style getter and setter methods (elem.style.(getPropertyValue|removeProperty|setProperty)). Time: values 17212.713936430326, 17297.297297297268, 17318.573185731846, 17021.27659574466, 17066.666666666646, 17066.666666666646, 16998.6719787517, 17108.140947752127, 17404.202719406636, 17276.0736196319, 17382.716049382754, 17276.073619631865, 17108.14094775205, 17361.282367447675, 17297.297297297373, 17191.697191697116, 17382.71604938256, 17276.073619631865, 17212.71393643043, 16998.671978751743 runs/s avg 17212.883333574264 runs/s median 17244.393778031146 runs/s stdev 135.20902389383878 runs/s min 16998.6719787517 runs/s max 17404.202719406636 runs/s It is not scientific but it does seem to give some boost. Should I do PR? Thanks! This got redone by bug 249228. We can close this if we want to do other change of bug 249228. Committed 259726@main (b98bb73bfb6f): <https://commits.webkit.org/259726@main> Reviewed commits have been landed. Closing PR #9418 and removing active labels. |