Rename PerfTestRunner.runPerSecond to PerfTestRunner.measureRunsPerSecond for consistency
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Oct 2012 22:06:52 +0000 (22:06 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Oct 2012 22:06:52 +0000 (22:06 +0000)
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131651 268f45cc-cd09-0410-ab3c-d52691b4dbfc

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

index bd679ff794b99070d04b0e99930264457f3617cb..b70d41b27b88e6274fe212f7314b36846004c8e0 100644 (file)
@@ -6,7 +6,7 @@
 var div = document.createElement("div");
 var childDiv = document.createElement("div");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'appendChild' and 'removeChild' in Dromaeo/dom-modify.html.",
     setup: function() {
         div.innerHTML = "";
index 7ef7b8ffa49c3a26d44835ce4955d4cf8705dab4..34d2580bb7b5cca656bf4736b18a24afeffc9fe0 100644 (file)
@@ -3,7 +3,7 @@
 <body>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'createElement', 'createTextNode' and 'cloneNode' in Dromaeo/dom-modify.html, and other DOM methods that return a new Node object.",
     run: function() {
         for (var i = 0; i < 5000; i++)
index c64603a8a801333979c558e631e00d85c65d881f..2deb132ae044ba0cae90d786a554b4610488139d 100644 (file)
@@ -12,7 +12,7 @@ link.addEventListener('click', function(event) {
     window.evt = event;
     event.preventDefault();
 
-    PerfTestRunner.runPerSecond({run: function () {
+    PerfTestRunner.measureRunsPerSecond({run: function () {
         var e = window.evt;
         for (var x = 0; x < kIteratonsPerTest; x++)
             e.target;
index f1714250a00752421a16486d47773ee68a1e8c19..b55f284c7deed8a2b106cc9b1ea0bf33a9621060 100644 (file)
@@ -6,7 +6,7 @@
 var div = document.createElement("div");
 div.appendChild(document.createElement("div"));
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'firstChild', 'lastChild', 'nextSibling' and 'previousSibling' in Dromaeo/dom-traverse.html, and other DOM attributes that return a Node object.",
     run: function() {
         var localDiv = div;
index 77e5b5d63bf3c282eb536a60f57bcfdb0e6d7e6f..0bac2633fe1b93e5001644ee5b4710f93016ca5d 100644 (file)
@@ -6,7 +6,7 @@
 <script>
 var div = document.getElementById("foo");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'getAttribute' in Dromaeo/dom-attr.html, and other DOM methods that return a String.",
     run: function() {
         var localDiv = div;
index fec3f64214d9a3c9ffc1b51807cbff38f21aa10c..55ec1aedcba8859a0a987cf9446697d0d03b1b9e 100644 (file)
@@ -4,7 +4,7 @@
 <div id="foo"></div>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'getElementById' in Dromaeo/dom-query.html, and other DOM methods that return a Node object.",
     run: function() {
         for (var i = 0; i < 100000; i++)
index d51b5db644ec7c987ec7495bbe53b83a55c500b8..6ef3ee85752f0622c0fb2ba3317cc82076de19f1 100644 (file)
@@ -4,7 +4,7 @@
 <div></div>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     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.",
     run: function() {
         for (var i = 0; i < 50000; i++)
index ba1573213258415c7f5a5a0eb3204dd96567f9f8..cc1046e4c88e4888162991f9008bcdc2d54f9b39 100644 (file)
@@ -6,7 +6,7 @@
 <script>
 var div = document.getElementById("foo");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     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.",
     run: function() {
         var localDiv = div;
index 6d256ae1cd744b5888cefa6ebf27d96e775924f7..b0d7535abdf78441b7141ee10104e227b0a417fa 100644 (file)
@@ -6,7 +6,7 @@
 <script>
 var div = document.getElementById("foo");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'element.property = value' in Dromaeo/dom-attr.html, and other DOM attributes that sets a String.",
     run: function() {
         var localDiv = div;
index 29151435fa5e22a13b3de713f8cc646e4a3d7cfd..ebc92db2f8958850b1dda2ca93633568fefcfee0 100644 (file)
@@ -6,7 +6,7 @@
 var div = document.createElement("div");
 var childDiv = document.createElement("div");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'insertBefore' in Dromaeo/dom-modify.html and replaceChild()",
     setup: function() {
         div.innerHTML = "";
index 176f6f75eee4d6bde5b5337b2671e711652709c4..26bf0d523d0425a5b16ee24e28e2422c9d9275f4 100644 (file)
@@ -7,7 +7,7 @@ var div = document.createElement("div");
 for (var i = 0; i < 100000; i++)
     div.appendChild(document.createElement("div"));
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'childNodes' in Dromaeo/dom-traverse.html, and other DOM attributes that access NodeList.",
     run: function() {
         var childNodes = div.childNodes;
index 78318eb27eba0db4300c08704310fc94e60a355d..d4590d77716b7959546f0080ba5fe978d6747fe0 100644 (file)
@@ -3,7 +3,7 @@
 <body>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers DOM attributes that return small integers.",
     run: function() {
         var localBody = document.body;
index 7f40b5b9bb7cd6e466db0770bf54335395320ec5..dbc72a328f67c6e5c72c5b049bdb7215efdac6f5 100644 (file)
@@ -6,7 +6,7 @@
 <script>
 var div = document.getElementById("foo");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'setAttribute' in Dromaeo/dom-attr.html and other DOM methods that return an undefined.",
     run: function() {
         var localDiv = div;
index 663ac3f5aa3ffefb2a2d363cd520f92135c322ce..4486dafc359632a9fd7de9269ef003e0e560d15e 100644 (file)
@@ -8,7 +8,7 @@ var source = new Array(length);
 for (var i = 0; i < length; i++)
     source[i] = i;
 
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     var target = new Uint8Array(source);
 }});
 </script>
index 88862f45c16d8e1a6086839b5a7222c37e310530..9b90799b6ea7ce207375c77decf78e440b5caed2 100644 (file)
@@ -8,7 +8,7 @@ var source = new Uint8Array(length);
 for (var i = 0; i < length; i++)
     source[i] = i;
 
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     var target = new Uint8Array(source);
 }});
 </script>
index 96290472390ac244a4ea75a523717ff7c1de037c..0853f6021bc0a51288fa41a0ae364a253b8a2ede 100644 (file)
@@ -8,7 +8,7 @@ var source = new Uint8Array(length);
 for (var i = 0; i < length; i++)
     source[i] = i;
 
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     var target = new Float64Array(source);
 }});
 </script>
index 82e9119db1790bc784529becbf6b00b5254e37e1..d3090b7df0da3fb960b55059100d98194e8e570d 100644 (file)
@@ -9,7 +9,7 @@ for (var i = 0; i < length; i++)
     source[i] = i;
 var target = new Float64Array(length);
 
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     target.set(source);
 }});
 </script>
index 53714ad25db76678d37cbd53a5c5891c1c561a79..0d5a1888abc7b6d31cb721b7b695de2506285238 100644 (file)
@@ -5,7 +5,7 @@
 <script>
 var div = document.createElement("div");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers undefined DOM attributes that return a null.",
     run: function() {
         var localDiv = div;
index d6988ad9f66a66c21dee680e3bac3d483c2aa705..f7ccfd687ab19c3487b46ca4b480bcb78cf3dd8b 100644 (file)
@@ -3,7 +3,7 @@
 <body>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers 'getElementById (not in document)' in Dromaeo/dom-query.html, and other Node-query methods that return a null.",
     run: function() {
         for (var i = 0; i < 100000; i++)
index 1f441eeca36bcc646e8002baa760b71cfd703b7c..9f172525ed57bd45fbae762bb54f826cb4352d55 100644 (file)
@@ -5,7 +5,7 @@
 <script>
 var div = document.createElement("div");
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark covers undefined DOM attributes that return an empty String.",
     run: function() {
         var localDiv = div;
index 445618c8c3c8bd9218ace3a786ff75f11c220ac8..0361a7c07682a74811e07d2612cee8080db49f16 100644 (file)
@@ -71,7 +71,7 @@ var properties = {
 'webkitTransform' : 'scale3d(0.5, 0.5, 0.5)',
 'wordSpacing' : '40px',
 };
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     for (key in properties) {
         var value = div.style[key];
         div.style[key] = "";
index ae28d012c85d044e4641ce5d315263bf04820864..6ac8ea4a4ab7159aa5f2789e96abd3a07c90f9f2 100644 (file)
@@ -72,7 +72,7 @@ var properties = {
 'wordSpacing' : '40px',
 };
 // The first run will just add the properties but it's fine as the first run of the benchmark is always ignored.
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     for (key in properties)
         div.style[key] = properties[key];
 }});
index edc40b0ae819c09c8fd49626141bfdbcfe00c5bb..289b77887218d67294e46acc5e7a17a59b0ae02d 100644 (file)
@@ -23,7 +23,7 @@
 </div>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark tests CSS Selector performance with querySelector().",
     run: function() {
         for (var i = 0; i < 100; i++) {
index 4f237f056256f500b2a976830dc01d9dbc5f6d6a..8e52df4755c364a385e4af96609bf2dbc94946ca 100644 (file)
@@ -1,3 +1,56 @@
+2012-10-17  Ryosuke Niwa  <rniwa@webkit.org>
+
+        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:
+
 2012-10-17  Ryosuke Niwa  <rniwa@webkit.org>
 
         Performance test should support asynchronous tests
index f027564b362f9cf9b2af6ececb0d08fc345555b0..d52ec19a031f7f0383582379ee584b43175db812 100644 (file)
@@ -16,7 +16,7 @@ var nodes = [];
 var childCount = 1000;
 for (var i = 0; i < childCount; ++i)
     nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n'));
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     for (var i = 0; i < childCount; ++i)
         container.appendChild(nodes[i]);
     container.innerHTML = '';
index 7c80e149a70c0d1f8949d17c51d9d0c596705305..8fca013adc50cd61b4c4a758529716e613a1dded 100644 (file)
@@ -13,7 +13,7 @@ textarea:invalid {
 <script>
 var container = document.getElementById('container');
 container.focus();
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     for (var i = 0; i < 500; ++i)
         document.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n');
     container.value = '';
index 99fdc1e3e2916d50f241078affc5d91f002451e8..a984b1337db89bc74ab4946c21b695feef593064 100644 (file)
@@ -20,7 +20,7 @@ if (window.testRunner)
     };
 
     function startTest() {
-        PerfTestRunner.runPerSecond({
+        PerfTestRunner.measureRunsPerSecond({
             description: "Exercising window resize and following relayout",
             run: run,
             done: onTestDone
index bc03ff14344a95c50f3fa8ac86fb1ab21ce1ef05..9dd0a2fc4be5614bb6a6f78a509d15b3a0e198b8 100644 (file)
@@ -28,7 +28,7 @@ function runTest()
     document.body.clientHeight;
 }
 
-PerfTestRunner.runPerSecond({run: runTest, done: function() {
+PerfTestRunner.measureRunsPerSecond({run: runTest, done: function() {
     document.getElementById("flexbox").style.display = 'none';
 }});
 </script>
index b1287aaee9df574f391313262d624f6ebecff698..78a4d012c44c6bc2b28487f029e42bb354b97583 100644 (file)
@@ -28,7 +28,7 @@ function runTest()
     document.body.clientHeight;
 }
 
-PerfTestRunner.runPerSecond({run: runTest, done:function() {
+PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() {
     document.getElementById("flexbox").style.display = 'none';
 }});
 </script>
index ddb15168385815cce0980c98a65968a55abfddc4..290a9eb74b6aa8ec1a7c88722ad5fd5f0971e94f 100644 (file)
@@ -28,7 +28,7 @@ function runTest()
     document.body.clientHeight;
 }
 
-PerfTestRunner.runPerSecond({run:runTest, done:function() {
+PerfTestRunner.measureRunsPerSecond({run:runTest, done:function() {
     document.getElementById("flexbox").style.display = 'none';
 }});
 </script>
index f57e7edc696e291366b3ff068f0e3cd7c58882d3..47ce576b7d99780bde5f709f9d87a613e9269e74 100644 (file)
@@ -28,7 +28,7 @@ function runTest()
     document.body.clientHeight;
 }
 
-PerfTestRunner.runPerSecond({run: runTest, done:function() {
+PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() {
     document.getElementById("flexbox").style.display = 'none';
 }});
 </script>
index 7f23ed0bd4fe45db1a42eeef730a3682021645ec..5255bf5d15b40d256d1119c2604c5759fe092c55 100644 (file)
@@ -86,7 +86,7 @@
             style.display = "none";
         }
 
-        PerfTestRunner.runPerSecond({ run: test });
+        PerfTestRunner.measureRunsPerSecond({ run: test });
     </script>
 </body>
 </html>
index 890338ab8b3da0fdf9ae9a68ea477118a3fd71cd..691d6b580fce3bfc0e4de22791a01298a915966d 100644 (file)
@@ -2619,7 +2619,7 @@ legend {
 var element = document.getElementById("styleElement");
 var cssText = element.textContent;
 var count = 0;
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     element.textContent = "";
     element.textContent = cssText + "#some" + count + "{color:black};";
     count++;
index ec0fa20825b18594be7e259fc7020b934afce5f3..7063db4e81c71bccdbcbfc9836932bfd64d310ed 100644 (file)
@@ -11,7 +11,7 @@ var div = document.createElement("div");
 document.body.appendChild(div);
 var tree = generateBinDOMTree(10);
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark tests innerHTML setter for a large DOM tree",
     run: function() {
         div.innerHTML = tree;
index 50b64c4921095ffb9514a97befbd5539bbb762c2..605355f53762e40f7cd16e0cbc9b9d9de51b6c9b 100644 (file)
@@ -17,7 +17,7 @@ h1.id = "id";
 h1.className = "class";
 parentDiv.appendChild(h1);
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark tests querySelector() for an element that appears in the depths in the document",
     run: function() {
         for (var i = 0; i < 100; i++) {
index aa224e5b92ae9586e54bfe6eda169f707f879373..896e0e0894c58cd1bb2f36c5dff0745fa6ab008c 100644 (file)
@@ -4,7 +4,7 @@
 <h1 id="id" class="class"></h1>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark tests querySelector() for an element that appears near the head of the document",
     run: function() {
         for (var i = 0; i < 1000; i++) {
index ba2d1587cf80af69f54548fe3530641b3926345a..45c1cdbe9100c474d665bbc4d620a1b5034b5576 100644 (file)
@@ -15,7 +15,7 @@ h1.id = "id";
 h1.className = "class";
 document.body.appendChild(h1);
 
-PerfTestRunner.runPerSecond({
+PerfTestRunner.measureRunsPerSecond({
     description: "This benchmark tests querySelector() for an element that appears near the tail of the document",
     run: function() {
         for (var i = 0; i < 100; i++) {
index 51ecb502be67475440a97dd4111bf53fd2b4f498..7fcde6b49a5c76ddca836e5a7c2b9e00716e017e 100644 (file)
@@ -3,7 +3,7 @@
 <script src="../resources/runner.js"></script>
 <script>
 var anchor = document.createElement("a");
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     for (var x = 0; x < 200000; x++) {
         anchor.href = "http://www.apple.com/"
     }
index e76b5f57bff15063178786d1cb5068236f6619e4..ce534ce5e608fbc212d44f21d6156d6789e3e814 100644 (file)
@@ -20,7 +20,7 @@ for (var i = 0; i < 1000; ++i) {
 htmlText += "</textarea>"
 
 var container = document.getElementById('container');
-PerfTestRunner.runPerSecond({run: function() {
+PerfTestRunner.measureRunsPerSecond({run: function() {
     container.innerHTML = htmlText;
 }});
 </script>
index 9094a34be8612c8db28dda51c1650ee639aa8411..72b052ea03c51f6d6d0e3edc3f8ddd84186d8c82 100644 (file)
@@ -2,7 +2,7 @@
 <body>
 <script src="../resources/runner.js"></script>
 <script>
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     var testDiv = document.createElement("div");
     testDiv.style.display = "none";
     document.body.appendChild(testDiv);
index ecdbc41f1b62d83d0149445330bbee6febb6450b..cee3e8cf2e301f3fe5f7b8227b87e5267a8d725d 100644 (file)
@@ -5,7 +5,7 @@
 var urls = PerfTestRunner.loadFile("resources/final-url-en").split("\n");
 var anchor = document.createElement("a");
 
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     for (var x = 0; x < urls.length; x++) {
         anchor.href = urls[x];
     }
index 122af335cb1ae21cc0d57296c92ceb64efd318aa..71dfe71f9b87b03b2aee51dafd22c65110a88337 100644 (file)
@@ -11,7 +11,7 @@ for (var i = 0; i < 0x7FFF; ++i)
 xmlArray.push('</root>')
 var xmlData = xmlArray.join('');
 
-PerfTestRunner.runPerSecond({run:function() {
+PerfTestRunner.measureRunsPerSecond({run:function() {
     domParser.parseFromString(xmlData, "text/xml");
 }});
 </script>
index 4c5149e085bf5e52ef4cc6eb746a0537f201f8aa..4d6b88bccff10ed792b04a3fe02b642bc40508b8 100644 (file)
@@ -72,7 +72,7 @@
         }
 
         if (window.testRunner) {
-            PerfTestRunner.runPerSecond({ run: newFrame, done: function() {
+            PerfTestRunner.measureRunsPerSecond({ run: newFrame, done: function() {
                 document.getElementById('wrapper').style.display = 'none';
             }});
         } else
index 6b5ba19e646760fef729c0940e5f3608f04b7a2e..15ac488608020b93ed3a8ee580e440db2dc6091a 100755 (executable)
@@ -273,7 +273,7 @@ if (window.testRunner) {
         return end - start;
     }
 
-    PerfTestRunner.runPerSecond = function (test) {
+    PerfTestRunner.measureRunsPerSecond = function (test) {
         PerfTestRunner.unit = "runs/s";
         start(test, measureRunsPerSecondOnce);
     }