Changeset 203978 in webkit


Ignore:
Timestamp:
Aug 1, 2016 11:45:17 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Add an option to run the MotionMark tests with classic tile size (512x512)
https://bugs.webkit.org/show_bug.cgi?id=160371

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2016-08-01
Reviewed by Darin Adler.

Setting the body to large size (3000x3000) and overflow to scroll forces
the classic tile size (512x512). This option does not affect the canvas
tests because the canvas is displayed on one tile regardless of its size.

  • Animometer/developer.html:
  • Animometer/resources/debug-runner/animometer.css:

(body.showing-test-container.tiles-big):
(body.showing-test-container.tiles-classic):

  • Animometer/resources/debug-runner/animometer.js:
  • Animometer/resources/runner/animometer.js:

(window.benchmarkController.startBenchmark):

Location:
trunk/PerformanceTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/Animometer/developer.html

    r202317 r203978  
    4646                                        <li><label><input name="display" type="radio" value="minimal" checked> Minimal</label></li>
    4747                                        <li><label><input name="display" type="radio" value="progress-bar"> Progress bar</label></li>
     48                                    </ul>
     49                                </li>
     50                                <li>
     51                                    <h3>Tiles:</h3>
     52                                    <ul>
     53                                        <li><label><input name="tiles" type="radio" value="big" checked> Big tiles</label></li>
     54                                        <li><label><input name="tiles" type="radio" value="classic"> Classic tiles (512x512)</label></li>
    4855                                    </ul>
    4956                                </li>
  • trunk/PerformanceTests/Animometer/resources/debug-runner/animometer.css

    r202314 r203978  
    351351}
    352352
     353body.showing-test-container.tiles-big {
     354    overflow: hidden;
     355}
     356
     357body.showing-test-container.tiles-classic {
     358    width: 3000px;
     359    height: 3000px;
     360    overflow: scroll;
     361}
     362
    353363/* -------------------------------------------------------------------------- */
    354364/*                           Results Section                                  */
  • trunk/PerformanceTests/Animometer/resources/debug-runner/animometer.js

    r202318 r203978  
    217217
    218218        document.body.classList.add("display-" + optionsManager.valueForOption("display"));
     219    },
     220   
     221    updateTiles: function()
     222    {
     223        document.body.classList.remove("tiles-big");
     224        document.body.classList.remove("tiles-classic");
     225
     226        document.body.classList.add("tiles-" + optionsManager.valueForOption("tiles"));
    219227    }
    220228};
     
    504512        optionsManager.updateUIFromLocalStorage();
    505513        optionsManager.updateDisplay();
     514        optionsManager.updateTiles();
    506515
    507516        if (benchmarkController.startBenchmarkImmediatelyIfEncoded())
     
    557566    onBenchmarkOptionsChanged: function(event)
    558567    {
    559         if (event.target.name == "controller") {
     568        switch (event.target.name) {
     569        case "controller":
    560570            suitesManager.updateEditsElementsState();
    561             return;
    562         }
    563         if (event.target.name == "display") {
     571            break;
     572        case "display":
    564573            optionsManager.updateDisplay();
     574            break;
     575        case "tiles":
     576            optionsManager.updateTiles();
     577            break;
    565578        }
    566579    },
  • trunk/PerformanceTests/Animometer/resources/runner/animometer.js

    r202318 r203978  
    507507            "test-interval": 30,
    508508            "display": "minimal",
     509            "tiles": "big",
    509510            "controller": "ramp",
    510511            "kalman-process-error": 1,
  • trunk/PerformanceTests/ChangeLog

    r202689 r203978  
     12016-08-01  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        Add an option to run the MotionMark tests with classic tile size (512x512)
     4        https://bugs.webkit.org/show_bug.cgi?id=160371
     5
     6        Reviewed by Darin Adler.
     7
     8        Setting the body to large size (3000x3000) and overflow to scroll forces
     9        the classic tile size (512x512). This option does not affect the canvas
     10        tests because the canvas is displayed on one tile regardless of its size.
     11
     12        * Animometer/developer.html:
     13        * Animometer/resources/debug-runner/animometer.css:
     14        (body.showing-test-container.tiles-big):
     15        (body.showing-test-container.tiles-classic):
     16        * Animometer/resources/debug-runner/animometer.js:
     17        * Animometer/resources/runner/animometer.js:
     18        (window.benchmarkController.startBenchmark):
     19
    1202016-06-29  Filip Pizlo  <fpizlo@apple.com>
    221
Note: See TracChangeset for help on using the changeset viewer.