Changeset 131651 in webkit
- Timestamp:
- Oct 17, 2012, 3:06:52 PM (12 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/Bindings/append-child.html
r117563 r131651 7 7 var childDiv = document.createElement("div"); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 description: "This benchmark covers 'appendChild' and 'removeChild' in Dromaeo/dom-modify.html.", 11 11 setup: function() { -
trunk/PerformanceTests/Bindings/create-element.html
r117563 r131651 4 4 <script src="../resources/runner.js"></script> 5 5 <script> 6 PerfTestRunner. runPerSecond({6 PerfTestRunner.measureRunsPerSecond({ 7 7 description: "This benchmark covers 'createElement', 'createTextNode' and 'cloneNode' in Dromaeo/dom-modify.html, and other DOM methods that return a new Node object.", 8 8 run: function() { -
trunk/PerformanceTests/Bindings/event-target-wrapper.html
r129669 r131651 13 13 event.preventDefault(); 14 14 15 PerfTestRunner. runPerSecond({run: function () {15 PerfTestRunner.measureRunsPerSecond({run: function () { 16 16 var e = window.evt; 17 17 for (var x = 0; x < kIteratonsPerTest; x++) -
trunk/PerformanceTests/Bindings/first-child.html
r117430 r131651 7 7 div.appendChild(document.createElement("div")); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 description: "This benchmark covers 'firstChild', 'lastChild', 'nextSibling' and 'previousSibling' in Dromaeo/dom-traverse.html, and other DOM attributes that return a Node object.", 11 11 run: function() { -
trunk/PerformanceTests/Bindings/get-attribute.html
r117550 r131651 7 7 var div = document.getElementById("foo"); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 description: "This benchmark covers 'getAttribute' in Dromaeo/dom-attr.html, and other DOM methods that return a String.", 11 11 run: function() { -
trunk/PerformanceTests/Bindings/get-element-by-id.html
r117548 r131651 5 5 <script src="../resources/runner.js"></script> 6 6 <script> 7 PerfTestRunner. runPerSecond({7 PerfTestRunner.measureRunsPerSecond({ 8 8 description: "This benchmark covers 'getElementById' in Dromaeo/dom-query.html, and other DOM methods that return a Node object.", 9 9 run: function() { -
trunk/PerformanceTests/Bindings/get-elements-by-tag-name.html
r117568 r131651 5 5 <script src="../resources/runner.js"></script> 6 6 <script> 7 PerfTestRunner. runPerSecond({7 PerfTestRunner.measureRunsPerSecond({ 8 8 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.", 9 9 run: function() { -
trunk/PerformanceTests/Bindings/id-getter.html
r117563 r131651 7 7 var div = document.getElementById("foo"); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 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.", 11 11 run: function() { -
trunk/PerformanceTests/Bindings/id-setter.html
r117563 r131651 7 7 var div = document.getElementById("foo"); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 description: "This benchmark covers 'element.property = value' in Dromaeo/dom-attr.html, and other DOM attributes that sets a String.", 11 11 run: function() { -
trunk/PerformanceTests/Bindings/insert-before.html
r117563 r131651 7 7 var childDiv = document.createElement("div"); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 description: "This benchmark covers 'insertBefore' in Dromaeo/dom-modify.html and replaceChild()", 11 11 setup: function() { -
trunk/PerformanceTests/Bindings/node-list-access.html
r117563 r131651 8 8 div.appendChild(document.createElement("div")); 9 9 10 PerfTestRunner. runPerSecond({10 PerfTestRunner.measureRunsPerSecond({ 11 11 description: "This benchmark covers 'childNodes' in Dromaeo/dom-traverse.html, and other DOM attributes that access NodeList.", 12 12 run: function() { -
trunk/PerformanceTests/Bindings/scroll-top.html
r117547 r131651 4 4 <script src="../resources/runner.js"></script> 5 5 <script> 6 PerfTestRunner. runPerSecond({6 PerfTestRunner.measureRunsPerSecond({ 7 7 description: "This benchmark covers DOM attributes that return small integers.", 8 8 run: function() { -
trunk/PerformanceTests/Bindings/set-attribute.html
r117553 r131651 7 7 var div = document.getElementById("foo"); 8 8 9 PerfTestRunner. runPerSecond({9 PerfTestRunner.measureRunsPerSecond({ 10 10 description: "This benchmark covers 'setAttribute' in Dromaeo/dom-attr.html and other DOM methods that return an undefined.", 11 11 run: function() { -
trunk/PerformanceTests/Bindings/typed-array-construct-from-array.html
r129669 r131651 9 9 source[i] = i; 10 10 11 PerfTestRunner. runPerSecond({run: function() {11 PerfTestRunner.measureRunsPerSecond({run: function() { 12 12 var target = new Uint8Array(source); 13 13 }}); -
trunk/PerformanceTests/Bindings/typed-array-construct-from-same-type.html
r129669 r131651 9 9 source[i] = i; 10 10 11 PerfTestRunner. runPerSecond({run: function() {11 PerfTestRunner.measureRunsPerSecond({run: function() { 12 12 var target = new Uint8Array(source); 13 13 }}); -
trunk/PerformanceTests/Bindings/typed-array-construct-from-typed.html
r129669 r131651 9 9 source[i] = i; 10 10 11 PerfTestRunner. runPerSecond({run: function() {11 PerfTestRunner.measureRunsPerSecond({run: function() { 12 12 var target = new Float64Array(source); 13 13 }}); -
trunk/PerformanceTests/Bindings/typed-array-set-from-typed.html
r129669 r131651 10 10 var target = new Float64Array(length); 11 11 12 PerfTestRunner. runPerSecond({run: function() {12 PerfTestRunner.measureRunsPerSecond({run: function() { 13 13 target.set(source); 14 14 }}); -
trunk/PerformanceTests/Bindings/undefined-first-child.html
r117503 r131651 6 6 var div = document.createElement("div"); 7 7 8 PerfTestRunner. runPerSecond({8 PerfTestRunner.measureRunsPerSecond({ 9 9 description: "This benchmark covers undefined DOM attributes that return a null.", 10 10 run: function() { -
trunk/PerformanceTests/Bindings/undefined-get-element-by-id.html
r117569 r131651 4 4 <script src="../resources/runner.js"></script> 5 5 <script> 6 PerfTestRunner. runPerSecond({6 PerfTestRunner.measureRunsPerSecond({ 7 7 description: "This benchmark covers 'getElementById (not in document)' in Dromaeo/dom-query.html, and other Node-query methods that return a null.", 8 8 run: function() { -
trunk/PerformanceTests/Bindings/undefined-id-getter.html
r117563 r131651 6 6 var div = document.createElement("div"); 7 7 8 PerfTestRunner. runPerSecond({8 PerfTestRunner.measureRunsPerSecond({ 9 9 description: "This benchmark covers undefined DOM attributes that return an empty String.", 10 10 run: function() { -
trunk/PerformanceTests/CSS/CSSPropertySetterGetter.html
r117001 r131651 72 72 'wordSpacing' : '40px', 73 73 }; 74 PerfTestRunner. runPerSecond({run:function() {74 PerfTestRunner.measureRunsPerSecond({run:function() { 75 75 for (key in properties) { 76 76 var value = div.style[key]; -
trunk/PerformanceTests/CSS/CSSPropertyUpdateValue.html
r117001 r131651 73 73 }; 74 74 // 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() {75 PerfTestRunner.measureRunsPerSecond({run:function() { 76 76 for (key in properties) 77 77 div.style[key] = properties[key]; -
trunk/PerformanceTests/CSS/PseudoClassSelectors.html
r130459 r131651 24 24 <script src="../resources/runner.js"></script> 25 25 <script> 26 PerfTestRunner. runPerSecond({26 PerfTestRunner.measureRunsPerSecond({ 27 27 description: "This benchmark tests CSS Selector performance with querySelector().", 28 28 run: function() { -
trunk/PerformanceTests/ChangeLog
r131638 r131651 1 2012-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 1 54 2012-10-17 Ryosuke Niwa <rniwa@webkit.org> 2 55 -
trunk/PerformanceTests/DOM/textarea-dom.html
r117862 r131651 17 17 for (var i = 0; i < childCount; ++i) 18 18 nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n')); 19 PerfTestRunner. runPerSecond({run: function() {19 PerfTestRunner.measureRunsPerSecond({run: function() { 20 20 for (var i = 0; i < childCount; ++i) 21 21 container.appendChild(nodes[i]); -
trunk/PerformanceTests/DOM/textarea-edit.html
r117862 r131651 14 14 var container = document.getElementById('container'); 15 15 container.focus(); 16 PerfTestRunner. runPerSecond({run: function() {16 PerfTestRunner.measureRunsPerSecond({run: function() { 17 17 for (var i = 0; i < 500; ++i) 18 18 document.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n'); -
trunk/PerformanceTests/Interactive/resources/window-resize.js
r123063 r131651 21 21 22 22 function startTest() { 23 PerfTestRunner. runPerSecond({23 PerfTestRunner.measureRunsPerSecond({ 24 24 description: "Exercising window resize and following relayout", 25 25 run: run, -
trunk/PerformanceTests/Layout/flexbox-column-nowrap.html
r116916 r131651 29 29 } 30 30 31 PerfTestRunner. runPerSecond({run: runTest, done: function() {31 PerfTestRunner.measureRunsPerSecond({run: runTest, done: function() { 32 32 document.getElementById("flexbox").style.display = 'none'; 33 33 }}); -
trunk/PerformanceTests/Layout/flexbox-column-wrap.html
r116916 r131651 29 29 } 30 30 31 PerfTestRunner. runPerSecond({run: runTest, done:function() {31 PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() { 32 32 document.getElementById("flexbox").style.display = 'none'; 33 33 }}); -
trunk/PerformanceTests/Layout/flexbox-row-nowrap.html
r116916 r131651 29 29 } 30 30 31 PerfTestRunner. runPerSecond({run:runTest, done:function() {31 PerfTestRunner.measureRunsPerSecond({run:runTest, done:function() { 32 32 document.getElementById("flexbox").style.display = 'none'; 33 33 }}); -
trunk/PerformanceTests/Layout/flexbox-row-wrap.html
r116916 r131651 29 29 } 30 30 31 PerfTestRunner. runPerSecond({run: runTest, done:function() {31 PerfTestRunner.measureRunsPerSecond({run: runTest, done:function() { 32 32 document.getElementById("flexbox").style.display = 'none'; 33 33 }}); -
trunk/PerformanceTests/Layout/line-layout.html
r116989 r131651 87 87 } 88 88 89 PerfTestRunner. runPerSecond({ run: test });89 PerfTestRunner.measureRunsPerSecond({ run: test }); 90 90 </script> 91 91 </body> -
trunk/PerformanceTests/Parser/css-parser-yui.html
r117001 r131651 2620 2620 var cssText = element.textContent; 2621 2621 var count = 0; 2622 PerfTestRunner. runPerSecond({run:function() {2622 PerfTestRunner.measureRunsPerSecond({run:function() { 2623 2623 element.textContent = ""; 2624 2624 element.textContent = cssText + "#some" + count + "{color:black};"; -
trunk/PerformanceTests/Parser/innerHTML-setter.html
r120998 r131651 12 12 var tree = generateBinDOMTree(10); 13 13 14 PerfTestRunner. runPerSecond({14 PerfTestRunner.measureRunsPerSecond({ 15 15 description: "This benchmark tests innerHTML setter for a large DOM tree", 16 16 run: function() { -
trunk/PerformanceTests/Parser/query-selector-deep.html
r119368 r131651 18 18 parentDiv.appendChild(h1); 19 19 20 PerfTestRunner. runPerSecond({20 PerfTestRunner.measureRunsPerSecond({ 21 21 description: "This benchmark tests querySelector() for an element that appears in the depths in the document", 22 22 run: function() { -
trunk/PerformanceTests/Parser/query-selector-first.html
r119368 r131651 5 5 <script src="../resources/runner.js"></script> 6 6 <script> 7 PerfTestRunner. runPerSecond({7 PerfTestRunner.measureRunsPerSecond({ 8 8 description: "This benchmark tests querySelector() for an element that appears near the head of the document", 9 9 run: function() { -
trunk/PerformanceTests/Parser/query-selector-last.html
r119368 r131651 16 16 document.body.appendChild(h1); 17 17 18 PerfTestRunner. runPerSecond({18 PerfTestRunner.measureRunsPerSecond({ 19 19 description: "This benchmark tests querySelector() for an element that appears near the tail of the document", 20 20 run: function() { -
trunk/PerformanceTests/Parser/simple-url.html
r117001 r131651 4 4 <script> 5 5 var anchor = document.createElement("a"); 6 PerfTestRunner. runPerSecond({run:function() {6 PerfTestRunner.measureRunsPerSecond({run:function() { 7 7 for (var x = 0; x < 200000; x++) { 8 8 anchor.href = "http://www.apple.com/" -
trunk/PerformanceTests/Parser/textarea-parsing.html
r117862 r131651 21 21 22 22 var container = document.getElementById('container'); 23 PerfTestRunner. runPerSecond({run: function() {23 PerfTestRunner.measureRunsPerSecond({run: function() { 24 24 container.innerHTML = htmlText; 25 25 }}); -
trunk/PerformanceTests/Parser/tiny-innerHTML.html
r117001 r131651 3 3 <script src="../resources/runner.js"></script> 4 4 <script> 5 PerfTestRunner. runPerSecond({run:function() {5 PerfTestRunner.measureRunsPerSecond({run:function() { 6 6 var testDiv = document.createElement("div"); 7 7 testDiv.style.display = "none"; -
trunk/PerformanceTests/Parser/url-parser.html
r117001 r131651 6 6 var anchor = document.createElement("a"); 7 7 8 PerfTestRunner. runPerSecond({run:function() {8 PerfTestRunner.measureRunsPerSecond({run:function() { 9 9 for (var x = 0; x < urls.length; x++) { 10 10 anchor.href = urls[x]; -
trunk/PerformanceTests/Parser/xml-parser.html
r117001 r131651 12 12 var xmlData = xmlArray.join(''); 13 13 14 PerfTestRunner. runPerSecond({run:function() {14 PerfTestRunner.measureRunsPerSecond({run:function() { 15 15 domParser.parseFromString(xmlData, "text/xml"); 16 16 }}); -
trunk/PerformanceTests/SVG/SvgNestedUse.html
r130073 r131651 73 73 74 74 if (window.testRunner) { 75 PerfTestRunner. runPerSecond({ run: newFrame, done: function() {75 PerfTestRunner.measureRunsPerSecond({ run: newFrame, done: function() { 76 76 document.getElementById('wrapper').style.display = 'none'; 77 77 }}); -
trunk/PerformanceTests/resources/runner.js
r131638 r131651 274 274 } 275 275 276 PerfTestRunner. runPerSecond = function (test) {276 PerfTestRunner.measureRunsPerSecond = function (test) { 277 277 PerfTestRunner.unit = "runs/s"; 278 278 start(test, measureRunsPerSecondOnce);
Note:
See TracChangeset
for help on using the changeset viewer.