Initialize the graphics benchmark's Kalman filter with estimated 60 FPS
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Nov 2015 17:55:08 +0000 (17:55 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Nov 2015 17:55:08 +0000 (17:55 +0000)
commitc1c081253a0d99160d1721a29dfec95d2a6f2855
treef34cf851098077a9be0c410c0a3eafe9c66f8372
parent54b3a3101ce704f5fa27a45ccc8c95b799b55bfe
Initialize the graphics benchmark's Kalman filter with estimated 60 FPS
https://bugs.webkit.org/show_bug.cgi?id=150965

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-11-06
Reviewed by Darin Adler.

This should give the benchmark more accurate reading at warmup time. And
hence we can safely reduce the test running time to be 10 seconds.

* Animometer/runner/animometer.html:
Add "defer" back when loading resources/animometer.js since this script
depends on many other scripts and we need to wait till the page is parsed.
Also change the default test interval to be 10 seconds.

* Animometer/runner/resources/graph.js:
(graph): Make the test results curves smoother.

* Animometer/tests/resources/main.js:
(Animator): Initialize the Kalman filter with 60 FPS which should be true
if the test page is empty.

(Animator.prototype.animate):
* Animometer/tests/resources/math.js:
(KalmanEstimator): Fix the initial value of _vecX_est.
    _vecX_est[0] = current FPS (= 60FPS when the test page is empty)
    _vecX_est[1] = first time derivative of FPS (=0; FPS has been constant).
    _vecX_est[2] = second time derivative of FPS (=0; since _vecX_est[1]=0).
(KalmanEstimator.prototype.estimate): Add some comments.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/Animometer/runner/animometer.html
PerformanceTests/Animometer/runner/resources/graph.js
PerformanceTests/Animometer/tests/resources/main.js
PerformanceTests/Animometer/tests/resources/math.js
PerformanceTests/ChangeLog