Bug 234001

Summary: [css-contain][Performance test] Add test contain-paint-text-nowrap.html
Product: WebKit Reporter: Rob Buis <rbuis>
Component: CSSAssignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: cathiechen, cdumez, ews-watchlist, jbedard, rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Rob Buis
Reported 2021-12-08 06:05:37 PST
Add test contain-paint-text-nowrap.html.
Attachments
Patch (3.36 KB, patch)
2021-12-08 06:12 PST, Rob Buis
no flags
Patch (24.56 KB, patch)
2021-12-17 01:22 PST, Rob Buis
no flags
Patch (24.71 KB, patch)
2021-12-17 01:33 PST, Rob Buis
no flags
Rob Buis
Comment 1 2021-12-08 06:12:12 PST
Rob Buis
Comment 2 2021-12-08 06:15:48 PST
Test results on my M1 mbp: Containment on: :Time -> [17, 17, 14, 15, 14, 16, 17, 17, 16, 17, 17, 16, 17.000000000000057, 16.999999999999943, 14, 17, 17.000000000000057, 15.999999999999943, 16, 17] ms mean: 16.2 ms median: 16.99999999999997 ms stdev: 1.1050125029061675 ms min: 14 ms max: 17.000000000000057 ms Containment off: :Time -> [26, 23, 24, 23, 20, 21, 21, 21, 20, 21, 21, 19, 19, 20, 19, 19, 19, 19, 19, 20] ms mean: 20.7 ms median: 20 ms stdev: 1.949358868961793 ms min: 19 ms max: 26 ms
Rob Buis
Comment 3 2021-12-08 06:17:49 PST
Test results on my M1 mbp: Containment on: :Time -> [17, 17, 14, 15, 14, 16, 17, 17, 16, 17, 17, 16, 17.000000000000057, 16.999999999999943, 14, 17, 17.000000000000057, 15.999999999999943, 16, 17] ms mean: 16.2 ms median: 16.99999999999997 ms stdev: 1.1050125029061675 ms min: 14 ms max: 17.000000000000057 ms Containment off: :Time -> [26, 23, 24, 23, 20, 21, 21, 21, 20, 21, 21, 19, 19, 20, 19, 19, 19, 19, 19, 20] ms mean: 20.7 ms median: 20 ms stdev: 1.949358868961793 ms min: 19 ms max: 26 ms
Radar WebKit Bug Importer
Comment 4 2021-12-15 06:06:17 PST
Simon Fraser (smfr)
Comment 5 2021-12-16 17:25:54 PST
Comment on attachment 446355 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446355&action=review > PerformanceTests/ChangeLog:13 > + * Paint/contain-paint-nowrap.html: Added. Might be better to have a "containment" directory, rather than a "Paint" directory. > PerformanceTests/Paint/contain-paint-nowrap.html:40 > + document.body.getBoundingClientRect(); Why the forced layout? > PerformanceTests/Paint/contain-paint-nowrap.html:44 > + var isDone = false; var -> let? > PerformanceTests/Paint/contain-paint-nowrap.html:52 > + var startTime; > + var height = 0; var -> let?
Simon Fraser (smfr)
Comment 6 2021-12-16 18:01:21 PST
(In reply to Rob Buis from comment #3) > Test results on my M1 mbp: > > Containment on: > :Time -> [17, 17, 14, 15, 14, 16, 17, 17, 16, 17, 17, 16, > 17.000000000000057, 16.999999999999943, 14, 17, 17.000000000000057, > 15.999999999999943, 16, 17] ms > mean: 16.2 ms > median: 16.99999999999997 ms > stdev: 1.1050125029061675 ms > min: 14 ms > max: 17.000000000000057 ms > > Containment off: > :Time -> [26, 23, 24, 23, 20, 21, 21, 21, 20, 21, 21, 19, 19, 20, 19, 19, > 19, 19, 19, 20] ms > mean: 20.7 ms > median: 20 ms > stdev: 1.949358868961793 ms > min: 19 ms > max: 26 ms Please do some rounding of the output: one decimal place for milliseconds should be enough.
Rob Buis
Comment 7 2021-12-17 01:22:21 PST
Rob Buis
Comment 8 2021-12-17 01:33:53 PST
Rob Buis
Comment 9 2021-12-17 01:39:20 PST
Comment on attachment 446355 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446355&action=review >> PerformanceTests/ChangeLog:13 >> + * Paint/contain-paint-nowrap.html: Added. > > Might be better to have a "containment" directory, rather than a "Paint" directory. Yes, containment directory is a good idea, I added one, and moved the existing containment tests there too. >> PerformanceTests/Paint/contain-paint-nowrap.html:40 >> + document.body.getBoundingClientRect(); > > Why the forced layout? Does not seem needed indeed. >> PerformanceTests/Paint/contain-paint-nowrap.html:44 >> + var isDone = false; > > var -> let? Done. >> PerformanceTests/Paint/contain-paint-nowrap.html:52 >> + var height = 0; > > var -> let? Done.
EWS
Comment 10 2021-12-17 04:42:26 PST
Committed r287179 (245348@main): <https://commits.webkit.org/245348@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447440 [details].
Rob Buis
Comment 11 2021-12-17 10:44:11 PST
(In reply to Simon Fraser (smfr) from comment #6) > (In reply to Rob Buis from comment #3) > > Test results on my M1 mbp: > > > > Containment on: > > :Time -> [17, 17, 14, 15, 14, 16, 17, 17, 16, 17, 17, 16, > > 17.000000000000057, 16.999999999999943, 14, 17, 17.000000000000057, > > 15.999999999999943, 16, 17] ms > > mean: 16.2 ms > > median: 16.99999999999997 ms > > stdev: 1.1050125029061675 ms > > min: 14 ms > > max: 17.000000000000057 ms > > > > Containment off: > > :Time -> [26, 23, 24, 23, 20, 21, 21, 21, 20, 21, 21, 19, 19, 20, 19, 19, > > 19, 19, 19, 20] ms > > mean: 20.7 ms > > median: 20 ms > > stdev: 1.949358868961793 ms > > min: 19 ms > > max: 26 ms > > Please do some rounding of the output: one decimal place for milliseconds > should be enough. AFAIK this is global behaviour of the perf test framework, or is there a way to fine-tune the accuracy per test through some parameter?
Simon Fraser (smfr)
Comment 12 2021-12-17 10:44:41 PST
Probably not. We should fix the framework!
Note You need to log in before you can comment on or make changes to this bug.