Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid setTimeout in waitOnElement (WebKit#321)
waitOnElement uses a 50ms timeout, which was historically motivated by FlightJS that used requirejs which had a hard-coded 50ms pause. We've observed fragile CPU scaling behavior with this approach in Speedometer 2.1. V3.0 is less affected by this since the perf-dashboard is the only workload the regularly needs another cycle to wait (all other workloads are ready after onload has fired). Using rAF lowers the timeout limit and is more realistic in required CPU ramp-up performance.
- Loading branch information