Changeset 117001 in webkit
- Timestamp:
- May 14, 2012 2:19:51 PM (12 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/CSS/CSSPropertySetterGetter.html
r110862 r117001 72 72 'wordSpacing' : '40px', 73 73 }; 74 PerfTestRunner.run (function() {74 PerfTestRunner.runPerSecond({run:function() { 75 75 for (key in properties) { 76 76 var value = div.style[key]; … … 78 78 div.style[key] = properties[key]; 79 79 } 80 } , 5000);80 }}); 81 81 </script> 82 82 </html> -
trunk/PerformanceTests/CSS/CSSPropertyUpdateValue.html
r112253 r117001 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.run (function() {75 PerfTestRunner.runPerSecond({run:function() { 76 76 for (key in properties) 77 77 div.style[key] = properties[key]; 78 } , 10000);78 }}); 79 79 </script> 80 80 </html> -
trunk/PerformanceTests/ChangeLog
r116989 r117001 1 2012-05-14 Ryosuke Niwa <rniwa@webkit.org> 2 3 Convert CSS and Parser tests to runs/s tests 4 https://bugs.webkit.org/show_bug.cgi?id=86399 5 6 Reviewed by Ojan Vafai. 7 8 Use runPerSecond instead of run to measure results in function calls per second (run/s) instead of time (ms). 9 This allows us to continue measuring performance reliably even when WebKit's performance improves and results 10 become too small for Date.now()'s precision (around 15 ms). 11 12 It should also reduce perf. bots cycle time for slower tests because we limit the number of function calls by time. 13 14 * CSS/CSSPropertySetterGetter.html: 15 * CSS/CSSPropertyUpdateValue.html: 16 * Parser/css-parser-yui.html: 17 * Parser/simple-url.html: 18 * Parser/tiny-innerHTML.html: 19 * Parser/url-parser.html: 20 * Parser/xml-parser.html: 21 1 22 2012-05-14 Dan Bernstein <mitz@apple.com> 2 23 -
trunk/PerformanceTests/Parser/css-parser-yui.html
r107964 r117001 2620 2620 var cssText = element.textContent; 2621 2621 var count = 0; 2622 PerfTestRunner.run (function() {2622 PerfTestRunner.runPerSecond({run:function() { 2623 2623 element.textContent = ""; 2624 2624 element.textContent = cssText + "#some" + count + "{color:black};"; 2625 2625 count++; 2626 } , 100);2626 }}); 2627 2627 2628 2628 </script> -
trunk/PerformanceTests/Parser/simple-url.html
r106386 r117001 4 4 <script> 5 5 var anchor = document.createElement("a"); 6 PerfTestRunner.run (function() {6 PerfTestRunner.runPerSecond({run:function() { 7 7 for (var x = 0; x < 200000; x++) { 8 8 anchor.href = "http://www.apple.com/" 9 9 } 10 } );10 }}); 11 11 </script> 12 12 </body> -
trunk/PerformanceTests/Parser/tiny-innerHTML.html
r106386 r117001 3 3 <script src="../resources/runner.js"></script> 4 4 <script> 5 PerfTestRunner.run (function() {5 PerfTestRunner.runPerSecond({run:function() { 6 6 var testDiv = document.createElement("div"); 7 7 testDiv.style.display = "none"; … … 11 11 } 12 12 document.body.removeChild(testDiv); 13 } );13 }}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Parser/url-parser.html
r106386 r117001 6 6 var anchor = document.createElement("a"); 7 7 8 PerfTestRunner.run (function() {8 PerfTestRunner.runPerSecond({run:function() { 9 9 for (var x = 0; x < urls.length; x++) { 10 10 anchor.href = urls[x]; 11 11 } 12 } );12 }}); 13 13 </script> 14 14 </body> -
trunk/PerformanceTests/Parser/xml-parser.html
r106386 r117001 12 12 var xmlData = xmlArray.join(''); 13 13 14 PerfTestRunner.run (function() {14 PerfTestRunner.runPerSecond({run:function() { 15 15 domParser.parseFromString(xmlData, "text/xml"); 16 } );16 }}); 17 17 </script> 18 18 </body>
Note: See TracChangeset
for help on using the changeset viewer.