Changeset 110801 in webkit


Ignore:
Timestamp:
Mar 14, 2012 6:07:27 PM (12 years ago)
Author:
Alexandru Chiculita
Message:

Layout/floats.html should be runnable by run-perf-tests
https://bugs.webkit.org/show_bug.cgi?id=77051

Reviewed by Ryosuke Niwa.

I've split Layout/floats.html into multiple tests for each button in the original manual test.
Some tests take longer to run and I've changed the number of iterations, so that each tests finishes under 30s per run.

  • DOM/resources/dom-perf.js:
  • Layout/floats.html: Removed.
  • Layout/floats_100_100.html: Added.
  • Layout/floats_100_100_nested.html: Added.
  • Layout/floats_20_100.html: Added.
  • Layout/floats_20_100_nested.html: Added.
  • Layout/floats_2_100.html: Added.
  • Layout/floats_2_100_nested.html: Added.
  • Layout/floats_50_100.html: Added.
  • Layout/floats_50_100_nested.html: Added.
  • Layout/resources/floats.css: Added.

(.container):
(.float):
(.big):
(.float-end):

  • Layout/resources/floats.js: Added.

(.):

  • Skipped:
  • resources/runner.js:

(PerfTestRunner.resetRandomSeed):
(PerfTestRunner.random):
(Math.random):

Moved the Math.random to runner.js to be used by all tests.
Added resetRandomSeed to bring the randomizer back to initial seed.
It is useful to get the same results at every run and minimize the
differences between runs.

Location:
trunk/PerformanceTests
Files:
11 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r110746 r110801  
     12012-03-14  Alexandru Chiculita  <achicu@adobe.com>
     2
     3        Layout/floats.html should be runnable by run-perf-tests
     4        https://bugs.webkit.org/show_bug.cgi?id=77051
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        I've split Layout/floats.html into multiple tests for each button in the original manual test.
     9        Some tests take longer to run and I've changed the number of iterations, so that each tests finishes under 30s per run.
     10
     11        * DOM/resources/dom-perf.js:
     12        * Layout/floats.html: Removed.
     13        * Layout/floats_100_100.html: Added.
     14        * Layout/floats_100_100_nested.html: Added.
     15        * Layout/floats_20_100.html: Added.
     16        * Layout/floats_20_100_nested.html: Added.
     17        * Layout/floats_2_100.html: Added.
     18        * Layout/floats_2_100_nested.html: Added.
     19        * Layout/floats_50_100.html: Added.
     20        * Layout/floats_50_100_nested.html: Added.
     21        * Layout/resources/floats.css: Added.
     22        (.container):
     23        (.float):
     24        (.big):
     25        (.float-end):
     26        * Layout/resources/floats.js: Added.
     27        (.):
     28        * Skipped:
     29        * resources/runner.js:
     30        (PerfTestRunner.resetRandomSeed):
     31        (PerfTestRunner.random):
     32        (Math.random):
     33            Moved the Math.random to runner.js to be used by all tests.
     34            Added resetRandomSeed to bring the randomizer back to initial seed.
     35            It is useful to get the same results at every run and minimize the
     36            differences between runs.
     37
    1382012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
    239
  • trunk/PerformanceTests/DOM/resources/dom-perf.js

    r109615 r110801  
    116116}
    117117
    118 // To make the benchmark results predictable, we replace Math.random with a
    119 // 100% deterministic alternative.
    120 Math.random = (function() {
    121     var seed = 49734321;
    122     return function() {
    123         // Robert Jenkins' 32 bit integer hash function.
    124         seed = ((seed + 0x7ed55d16) + (seed << 12))  & 0xffffffff;
    125         seed = ((seed ^ 0xc761c23c) ^ (seed >>> 19)) & 0xffffffff;
    126         seed = ((seed + 0x165667b1) + (seed << 5))   & 0xffffffff;
    127         seed = ((seed + 0xd3a2646c) ^ (seed << 9))   & 0xffffffff;
    128         seed = ((seed + 0xfd7046c5) + (seed << 3))   & 0xffffffff;
    129         seed = ((seed ^ 0xb55a4f09) ^ (seed >>> 16)) & 0xffffffff;
    130         return (seed & 0xfffffff) / 0x10000000;
    131     };
    132 })();
    133 
    134118function Benchmark(name, run, opt_setup, opt_cleanup, opt_shareSetup) {
    135119    this.name = name;
  • trunk/PerformanceTests/Skipped

    r106865 r110801  
    33
    44# Do not conform to WebKit or Chromium perf test styles
    5 Layout
    65PageLoad
    76SunSpider
  • trunk/PerformanceTests/resources/runner.js

    r108748 r110801  
    11
    22var PerfTestRunner = {};
     3
     4// To make the benchmark results predictable, we replace Math.random with a
     5// 100% deterministic alternative.
     6PerfTestRunner.randomSeed = PerfTestRunner.initialRandomSeed = 49734321;
     7
     8PerfTestRunner.resetRandomSeed = function() {
     9    PerfTestRunner.randomSeed = PerfTestRunner.initialRandomSeed
     10}
     11
     12PerfTestRunner.random = Math.random = function() {
     13    // Robert Jenkins' 32 bit integer hash function.
     14    var randomSeed = PerfTestRunner.randomSeed;
     15    randomSeed = ((randomSeed + 0x7ed55d16) + (randomSeed << 12))  & 0xffffffff;
     16    randomSeed = ((randomSeed ^ 0xc761c23c) ^ (randomSeed >>> 19)) & 0xffffffff;
     17    randomSeed = ((randomSeed + 0x165667b1) + (randomSeed << 5))   & 0xffffffff;
     18    randomSeed = ((randomSeed + 0xd3a2646c) ^ (randomSeed << 9))   & 0xffffffff;
     19    randomSeed = ((randomSeed + 0xfd7046c5) + (randomSeed << 3))   & 0xffffffff;
     20    randomSeed = ((randomSeed ^ 0xb55a4f09) ^ (randomSeed >>> 16)) & 0xffffffff;
     21    PerfTestRunner.randomSeed = randomSeed;
     22    return (randomSeed & 0xfffffff) / 0x10000000;
     23};
    324
    425PerfTestRunner.log = function (text) {
Note: See TracChangeset for help on using the changeset viewer.