Add new benchmark tests.
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Feb 2016 07:42:00 +0000 (07:42 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Feb 2016 07:42:00 +0000 (07:42 +0000)
commitee87a503c201a9ec671f049f82fc826c083d27ba
tree688026b6f29b27abba3a4ca7c196b5e0e73c3cea
parent8443d6026a29733eea8b1f8bedaa5ff59ecfa80b
Add new benchmark tests.
https://bugs.webkit.org/show_bug.cgi?id=154063

Provisionally reviewed by Said Abou-Hallawa.

Add tests for get/put image data, filters, opacity, and css transforms.

* Animometer/resources/runner/benchmark-runner.js:
(_runBenchmarkAndRecordResults): Update the body background color to match that of
the stage.
(this._runNextIteration): Clear the background color style for the results page.
* Animometer/resources/runner/tests.js:
* Animometer/tests/master/focus.html: Added.
* Animometer/tests/master/image-data.html: Added.
* Animometer/tests/master/multiply.html: Added.
* Animometer/tests/master/resources/focus.js: Added.
* Animometer/tests/master/resources/image-data.js: Added.
* Animometer/tests/master/resources/multiply.js: Added.
* Animometer/tests/master/resources/stage.css: Move common styles out.
* Animometer/tests/resources/main.js: Update Stage.randomBool to use Math.random.
Add Stage.randomSign for randomly setting a direction. Add the notion of the
current timestamp of the test to Benchmark, since some animations cycle through
colors and rely on an incremental counter like the time.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
PerformanceTests/Animometer/resources/extensions.js
PerformanceTests/Animometer/resources/runner/benchmark-runner.js
PerformanceTests/Animometer/resources/runner/tests.js
PerformanceTests/Animometer/tests/master/focus.html [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/image-data.html [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/multiply.html [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/resources/focus.js [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/resources/image-data.js [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/resources/multiply.js [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/resources/stage.css
PerformanceTests/Animometer/tests/resources/main.js
PerformanceTests/ChangeLog