Changeset 131651 in webkit


Ignore:
Timestamp:
Oct 17, 2012, 3:06:52 PM (12 years ago)
Author:
rniwa@webkit.org
Message:

Rename PerfTestRunner.runPerSecond to PerfTestRunner.measureRunsPerSecond for consistency
https://bugs.webkit.org/show_bug.cgi?id=99642

Reviewed by Dirk Pranke.

Renamed the method.

  • Bindings/append-child.html:
  • Bindings/create-element.html:
  • Bindings/event-target-wrapper.html:
  • Bindings/first-child.html:
  • Bindings/get-attribute.html:
  • Bindings/get-element-by-id.html:
  • Bindings/get-elements-by-tag-name.html:
  • Bindings/id-getter.html:
  • Bindings/id-setter.html:
  • Bindings/insert-before.html:
  • Bindings/node-list-access.html:
  • Bindings/scroll-top.html:
  • Bindings/set-attribute.html:
  • Bindings/typed-array-construct-from-array.html:
  • Bindings/typed-array-construct-from-same-type.html:
  • Bindings/typed-array-construct-from-typed.html:
  • Bindings/typed-array-set-from-typed.html:
  • Bindings/undefined-first-child.html:
  • Bindings/undefined-get-element-by-id.html:
  • Bindings/undefined-id-getter.html:
  • CSS/CSSPropertySetterGetter.html:
  • CSS/CSSPropertyUpdateValue.html:
  • CSS/PseudoClassSelectors.html:
  • DOM/textarea-dom.html:
  • DOM/textarea-edit.html:
  • Interactive/resources/window-resize.js:
  • Layout/flexbox-column-nowrap.html:
  • Layout/flexbox-column-wrap.html:
  • Layout/flexbox-row-nowrap.html:
  • Layout/flexbox-row-wrap.html:
  • Layout/line-layout.html:
  • Parser/css-parser-yui.html:
  • Parser/innerHTML-setter.html:
  • Parser/query-selector-deep.html:
  • Parser/query-selector-first.html:
  • Parser/query-selector-last.html:
  • Parser/simple-url.html:
  • Parser/textarea-parsing.html:
  • Parser/tiny-innerHTML.html:
  • Parser/url-parser.html:
  • Parser/xml-parser.html:
  • SVG/SvgNestedUse.html:
  • resources/runner.js:
Location:
trunk/PerformanceTests
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/Bindings/append-child.html

    r117563 r131651  
    77var childDiv = document.createElement("div");
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'appendChild' and 'removeChild' in Dromaeo/dom-modify.html.",
    1111    setup: function() {
  • trunk/PerformanceTests/Bindings/create-element.html

    r117563 r131651  
    44<script src="../resources/runner.js"></script>
    55<script>
    6 PerfTestRunner.runPerSecond({
     6PerfTestRunner.measureRunsPerSecond({
    77    description: "This benchmark covers 'createElement', 'createTextNode' and 'cloneNode' in Dromaeo/dom-modify.html, and other DOM methods that return a new Node object.",
    88    run: function() {
  • trunk/PerformanceTests/Bindings/event-target-wrapper.html

    r129669 r131651  
    1313    event.preventDefault();
    1414
    15     PerfTestRunner.runPerSecond({run: function () {
     15    PerfTestRunner.measureRunsPerSecond({run: function () {
    1616        var e = window.evt;
    1717        for (var x = 0; x < kIteratonsPerTest; x++)
  • trunk/PerformanceTests/Bindings/first-child.html

    r117430 r131651  
    77div.appendChild(document.createElement("div"));
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'firstChild', 'lastChild', 'nextSibling' and 'previousSibling' in Dromaeo/dom-traverse.html, and other DOM attributes that return a Node object.",
    1111    run: function() {
  • trunk/PerformanceTests/Bindings/get-attribute.html

    r117550 r131651  
    77var div = document.getElementById("foo");
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'getAttribute' in Dromaeo/dom-attr.html, and other DOM methods that return a String.",
    1111    run: function() {
  • trunk/PerformanceTests/Bindings/get-element-by-id.html

    r117548 r131651  
    55<script src="../resources/runner.js"></script>
    66<script>
    7 PerfTestRunner.runPerSecond({
     7PerfTestRunner.measureRunsPerSecond({
    88    description: "This benchmark covers 'getElementById' in Dromaeo/dom-query.html, and other DOM methods that return a Node object.",
    99    run: function() {
  • trunk/PerformanceTests/Bindings/get-elements-by-tag-name.html

    r117568 r131651  
    55<script src="../resources/runner.js"></script>
    66<script>
    7 PerfTestRunner.runPerSecond({
     7PerfTestRunner.measureRunsPerSecond({
    88    description: "This benchmark covers 'getElementsByTagName (not in document)', 'getElementsByTagName', 'getElementsByName (not in document)' and 'getElementsByName' in Dromaeo/dom-query.html, and other DOM methods that return a NodeList.",
    99    run: function() {
  • trunk/PerformanceTests/Bindings/id-getter.html

    r117563 r131651  
    77var div = document.getElementById("foo");
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'element.property' in Dromaeo/dom-attr.html, 'innerHTML' in Dromaeo/dom-modify.html, and other DOM attributes that return a String.",
    1111    run: function() {
  • trunk/PerformanceTests/Bindings/id-setter.html

    r117563 r131651  
    77var div = document.getElementById("foo");
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'element.property = value' in Dromaeo/dom-attr.html, and other DOM attributes that sets a String.",
    1111    run: function() {
  • trunk/PerformanceTests/Bindings/insert-before.html

    r117563 r131651  
    77var childDiv = document.createElement("div");
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'insertBefore' in Dromaeo/dom-modify.html and replaceChild()",
    1111    setup: function() {
  • trunk/PerformanceTests/Bindings/node-list-access.html

    r117563 r131651  
    88    div.appendChild(document.createElement("div"));
    99
    10 PerfTestRunner.runPerSecond({
     10PerfTestRunner.measureRunsPerSecond({
    1111    description: "This benchmark covers 'childNodes' in Dromaeo/dom-traverse.html, and other DOM attributes that access NodeList.",
    1212    run: function() {
  • trunk/PerformanceTests/Bindings/scroll-top.html

    r117547 r131651  
    44<script src="../resources/runner.js"></script>
    55<script>
    6 PerfTestRunner.runPerSecond({
     6PerfTestRunner.measureRunsPerSecond({
    77    description: "This benchmark covers DOM attributes that return small integers.",
    88    run: function() {
  • trunk/PerformanceTests/Bindings/set-attribute.html

    r117553 r131651  
    77var div = document.getElementById("foo");
    88
    9 PerfTestRunner.runPerSecond({
     9PerfTestRunner.measureRunsPerSecond({
    1010    description: "This benchmark covers 'setAttribute' in Dromaeo/dom-attr.html and other DOM methods that return an undefined.",
    1111    run: function() {
  • trunk/PerformanceTests/Bindings/typed-array-construct-from-array.html

    r129669 r131651  
    99    source[i] = i;
    1010
    11 PerfTestRunner.runPerSecond({run: function() {
     11PerfTestRunner.measureRunsPerSecond({run: function() {
    1212    var target = new Uint8Array(source);
    1313}});
  • trunk/PerformanceTests/Bindings/typed-array-construct-from-same-type.html

    r129669 r131651  
    99    source[i] = i;
    1010
    11 PerfTestRunner.runPerSecond({run: function() {
     11PerfTestRunner.measureRunsPerSecond({run: function() {
    1212    var target = new Uint8Array(source);
    1313}});
  • trunk/PerformanceTests/Bindings/typed-array-construct-from-typed.html

    r129669 r131651  
    99    source[i] = i;
    1010
    11 PerfTestRunner.runPerSecond({run: function() {
     11PerfTestRunner.measureRunsPerSecond({run: function() {
    1212    var target = new Float64Array(source);
    1313}});
  • trunk/PerformanceTests/Bindings/typed-array-set-from-typed.html

    r129669 r131651  
    1010var target = new Float64Array(length);
    1111
    12 PerfTestRunner.runPerSecond({run: function() {
     12PerfTestRunner.measureRunsPerSecond({run: function() {
    1313    target.set(source);
    1414}});
  • trunk/PerformanceTests/Bindings/undefined-first-child.html

    r117503 r131651  
    66var div = document.createElement("div");
    77
    8 PerfTestRunner.runPerSecond({
     8PerfTestRunner.measureRunsPerSecond({
    99    description: "This benchmark covers undefined DOM attributes that return a null.",
    1010    run: function() {
  • trunk/PerformanceTests/Bindings/undefined-get-element-by-id.html

    r117569 r131651  
    44<script src="../resources/runner.js"></script>
    55<script>
    6 PerfTestRunner.runPerSecond({
     6PerfTestRunner.measureRunsPerSecond({
    77    description: "This benchmark covers 'getElementById (not in document)' in Dromaeo/dom-query.html, and other Node-query methods that return a null.",
    88    run: function() {
  • trunk/PerformanceTests/Bindings/undefined-id-getter.html

    r117563 r131651  
    66var div = document.createElement("div");
    77
    8 PerfTestRunner.runPerSecond({
     8PerfTestRunner.measureRunsPerSecond({
    99    description: "This benchmark covers undefined DOM attributes that return an empty String.",
    1010    run: function() {
  • trunk/PerformanceTests/CSS/CSSPropertySetterGetter.html

    r117001 r131651  
    7272'wordSpacing' : '40px',
    7373};
    74 PerfTestRunner.runPerSecond({run:function() {
     74PerfTestRunner.measureRunsPerSecond({run:function() {
    7575    for (key in properties) {
    7676        var value = div.style[key];
  • trunk/PerformanceTests/CSS/CSSPropertyUpdateValue.html

    r117001 r131651  
    7373};
    7474// The first run will just add the properties but it's fine as the first run of the benchmark is always ignored.
    75 PerfTestRunner.runPerSecond({run:function() {
     75PerfTestRunner.measureRunsPerSecond({run:function() {
    7676    for (key in properties)
    7777        div.style[key] = properties[key];
  • trunk/PerformanceTests/CSS/PseudoClassSelectors.html

    r130459 r131651  
    2424<script src="../resources/runner.js"></script>
    2525<script>
    26 PerfTestRunner.runPerSecond({
     26PerfTestRunner.measureRunsPerSecond({
    2727    description: "This benchmark tests CSS Selector performance with querySelector().",
    2828    run: function() {
  • trunk/PerformanceTests/ChangeLog

    r131638 r131651  
     12012-10-17  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Rename PerfTestRunner.runPerSecond to PerfTestRunner.measureRunsPerSecond for consistency
     4        https://bugs.webkit.org/show_bug.cgi?id=99642
     5
     6        Reviewed by Dirk Pranke.
     7
     8        Renamed the method.
     9
     10        * Bindings/append-child.html:
     11        * Bindings/create-element.html:
     12        * Bindings/event-target-wrapper.html:
     13        * Bindings/first-child.html:
     14        * Bindings/get-attribute.html:
     15        * Bindings/get-element-by-id.html:
     16        * Bindings/get-elements-by-tag-name.html:
     17        * Bindings/id-getter.html:
     18        * Bindings/id-setter.html:
     19        * Bindings/insert-before.html:
     20        * Bindings/node-list-access.html:
     21        * Bindings/scroll-top.html:
     22        * Bindings/set-attribute.html:
     23        * Bindings/typed-array-construct-from-array.html:
     24        * Bindings/typed-array-construct-from-same-type.html:
     25        * Bindings/typed-array-construct-from-typed.html:
     26        * Bindings/typed-array-set-from-typed.html:
     27        * Bindings/undefined-first-child.html:
     28        * Bindings/undefined-get-element-by-id.html:
     29        * Bindings/undefined-id-getter.html:
     30        * CSS/CSSPropertySetterGetter.html:
     31        * CSS/CSSPropertyUpdateValue.html:
     32        * CSS/PseudoClassSelectors.html:
     33        * DOM/textarea-dom.html:
     34        * DOM/textarea-edit.html:
     35        * Interactive/resources/window-resize.js:
     36        * Layout/flexbox-column-nowrap.html:
     37        * Layout/flexbox-column-wrap.html:
     38        * Layout/flexbox-row-nowrap.html:
     39        * Layout/flexbox-row-wrap.html:
     40        * Layout/line-layout.html:
     41        * Parser/css-parser-yui.html:
     42        * Parser/innerHTML-setter.html:
     43        * Parser/query-selector-deep.html:
     44        * Parser/query-selector-first.html:
     45        * Parser/query-selector-last.html:
     46        * Parser/simple-url.html:
     47        * Parser/textarea-parsing.html:
     48        * Parser/tiny-innerHTML.html:
     49        * Parser/url-parser.html:
     50        * Parser/xml-parser.html:
     51        * SVG/SvgNestedUse.html:
     52        * resources/runner.js:
     53
    1542012-10-17  Ryosuke Niwa  <rniwa@webkit.org>
    255
  • trunk/PerformanceTests/DOM/textarea-dom.html

    r117862 r131651  
    1717for (var i = 0; i < childCount; ++i)
    1818    nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n'));
    19 PerfTestRunner.runPerSecond({run: function() {
     19PerfTestRunner.measureRunsPerSecond({run: function() {
    2020    for (var i = 0; i < childCount; ++i)
    2121        container.appendChild(nodes[i]);
  • trunk/PerformanceTests/DOM/textarea-edit.html

    r117862 r131651  
    1414var container = document.getElementById('container');
    1515container.focus();
    16 PerfTestRunner.runPerSecond({run: function() {
     16PerfTestRunner.measureRunsPerSecond({run: function() {
    1717    for (var i = 0; i < 500; ++i)
    1818        document.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n');
  • trunk/PerformanceTests/Interactive/resources/window-resize.js

    r123063 r131651  
    2121
    2222    function startTest() {
    23         PerfTestRunner.runPerSecond({
     23        PerfTestRunner.measureRunsPerSecond({
    2424            description: "Exercising window resize and following relayout",
    2525            run: run,
  • trunk/PerformanceTests/Layout/flexbox-column-nowrap.html

    r116916 r131651  
    2929}
    3030
    31 PerfTestRunner.runPerSecond({run: runTest, done: function() {
     31PerfTestRunner.measureRunsPerSecond({run: runTest, done: function() {
    3232    document.getElementById("flexbox").style.display = 'none';
    3333}});
  • trunk/PerformanceTests/Layout/flexbox-column-wrap.html

    r116916 r131651  
    2929}
    3030
    31 PerfTestRunner.runPerSecond({run: runTest, done:function() {
     31PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() {
    3232    document.getElementById("flexbox").style.display = 'none';
    3333}});
  • trunk/PerformanceTests/Layout/flexbox-row-nowrap.html

    r116916 r131651  
    2929}
    3030
    31 PerfTestRunner.runPerSecond({run:runTest, done:function() {
     31PerfTestRunner.measureRunsPerSecond({run:runTest, done:function() {
    3232    document.getElementById("flexbox").style.display = 'none';
    3333}});
  • trunk/PerformanceTests/Layout/flexbox-row-wrap.html

    r116916 r131651  
    2929}
    3030
    31 PerfTestRunner.runPerSecond({run: runTest, done:function() {
     31PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() {
    3232    document.getElementById("flexbox").style.display = 'none';
    3333}});
  • trunk/PerformanceTests/Layout/line-layout.html

    r116989 r131651  
    8787        }
    8888
    89         PerfTestRunner.runPerSecond({ run: test });
     89        PerfTestRunner.measureRunsPerSecond({ run: test });
    9090    </script>
    9191</body>
  • trunk/PerformanceTests/Parser/css-parser-yui.html

    r117001 r131651  
    26202620var cssText = element.textContent;
    26212621var count = 0;
    2622 PerfTestRunner.runPerSecond({run:function() {
     2622PerfTestRunner.measureRunsPerSecond({run:function() {
    26232623    element.textContent = "";
    26242624    element.textContent = cssText + "#some" + count + "{color:black};";
  • trunk/PerformanceTests/Parser/innerHTML-setter.html

    r120998 r131651  
    1212var tree = generateBinDOMTree(10);
    1313
    14 PerfTestRunner.runPerSecond({
     14PerfTestRunner.measureRunsPerSecond({
    1515    description: "This benchmark tests innerHTML setter for a large DOM tree",
    1616    run: function() {
  • trunk/PerformanceTests/Parser/query-selector-deep.html

    r119368 r131651  
    1818parentDiv.appendChild(h1);
    1919
    20 PerfTestRunner.runPerSecond({
     20PerfTestRunner.measureRunsPerSecond({
    2121    description: "This benchmark tests querySelector() for an element that appears in the depths in the document",
    2222    run: function() {
  • trunk/PerformanceTests/Parser/query-selector-first.html

    r119368 r131651  
    55<script src="../resources/runner.js"></script>
    66<script>
    7 PerfTestRunner.runPerSecond({
     7PerfTestRunner.measureRunsPerSecond({
    88    description: "This benchmark tests querySelector() for an element that appears near the head of the document",
    99    run: function() {
  • trunk/PerformanceTests/Parser/query-selector-last.html

    r119368 r131651  
    1616document.body.appendChild(h1);
    1717
    18 PerfTestRunner.runPerSecond({
     18PerfTestRunner.measureRunsPerSecond({
    1919    description: "This benchmark tests querySelector() for an element that appears near the tail of the document",
    2020    run: function() {
  • trunk/PerformanceTests/Parser/simple-url.html

    r117001 r131651  
    44<script>
    55var anchor = document.createElement("a");
    6 PerfTestRunner.runPerSecond({run:function() {
     6PerfTestRunner.measureRunsPerSecond({run:function() {
    77    for (var x = 0; x < 200000; x++) {
    88        anchor.href = "http://www.apple.com/"
  • trunk/PerformanceTests/Parser/textarea-parsing.html

    r117862 r131651  
    2121
    2222var container = document.getElementById('container');
    23 PerfTestRunner.runPerSecond({run: function() {
     23PerfTestRunner.measureRunsPerSecond({run: function() {
    2424    container.innerHTML = htmlText;
    2525}});
  • trunk/PerformanceTests/Parser/tiny-innerHTML.html

    r117001 r131651  
    33<script src="../resources/runner.js"></script>
    44<script>
    5 PerfTestRunner.runPerSecond({run:function() {
     5PerfTestRunner.measureRunsPerSecond({run:function() {
    66    var testDiv = document.createElement("div");
    77    testDiv.style.display = "none";
  • trunk/PerformanceTests/Parser/url-parser.html

    r117001 r131651  
    66var anchor = document.createElement("a");
    77
    8 PerfTestRunner.runPerSecond({run:function() {
     8PerfTestRunner.measureRunsPerSecond({run:function() {
    99    for (var x = 0; x < urls.length; x++) {
    1010        anchor.href = urls[x];
  • trunk/PerformanceTests/Parser/xml-parser.html

    r117001 r131651  
    1212var xmlData = xmlArray.join('');
    1313
    14 PerfTestRunner.runPerSecond({run:function() {
     14PerfTestRunner.measureRunsPerSecond({run:function() {
    1515    domParser.parseFromString(xmlData, "text/xml");
    1616}});
  • trunk/PerformanceTests/SVG/SvgNestedUse.html

    r130073 r131651  
    7373
    7474        if (window.testRunner) {
    75             PerfTestRunner.runPerSecond({ run: newFrame, done: function() {
     75            PerfTestRunner.measureRunsPerSecond({ run: newFrame, done: function() {
    7676                document.getElementById('wrapper').style.display = 'none';
    7777            }});
  • trunk/PerformanceTests/resources/runner.js

    r131638 r131651  
    274274    }
    275275
    276     PerfTestRunner.runPerSecond = function (test) {
     276    PerfTestRunner.measureRunsPerSecond = function (test) {
    277277        PerfTestRunner.unit = "runs/s";
    278278        start(test, measureRunsPerSecondOnce);
Note: See TracChangeset for help on using the changeset viewer.