Bug 269985

Summary: Cache reftest screenshots
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, jbedard, ryanhaddad, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 203784    
Bug Blocks:    

Sam Sneddon [:gsnedders]
Reported 2024-02-23 05:38:11 PST
Once we are finding reftests via rel=match, we can then have multiple tests using the same reference URL. There's no reason to load the same reference URL hundreds (or even thousands, in the most common case!) of times. e.g. ref-filled-green-100px-square.xht is used >2k times; if we assume loading and doing the screenshot takes 25ms each time, then almost a minute is spent just taking screenshots of that URL. Actually caching screenshots probably also would significantly decrease the cost of importing css/CSS2 (Bug 209735), as CSS2 counts for a large percentage of all reftests in WPT. My initial inclination would be to cache per test runner worker (as this avoids having to synchronise caches).
Attachments
Radar WebKit Bug Importer
Comment 1 2024-02-23 05:38:18 PST
Note You need to log in before you can comment on or make changes to this bug.