Changeset 134637 in webkit
- Timestamp:
- Nov 14, 2012 11:34:49 AM (11 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/Animation/balls.html
r131638 r134637 107 107 108 108 window.onload = function () { 109 PerfTestRunner.prepareToMeasureValuesAsync({ runCount: 10, done: onCompletedRun, unit: 'fps'});109 PerfTestRunner.prepareToMeasureValuesAsync({iterationCount: 10, done: onCompletedRun, unit: 'fps'}); 110 110 111 111 // Create the particles -
trunk/PerformanceTests/ChangeLog
r134443 r134637 1 2012-11-14 Ryosuke Niwa <rniwa@webkit.org> 2 3 runCount in runner.js should be renamed to iterationCount 4 https://bugs.webkit.org/show_bug.cgi?id=102208 5 6 Reviewed by Tony Chang. 7 8 Prior to this patch, there were terminology confusions between "runs" and "iterations". 9 The term "run" should refer to running a performance test once, and "iteration" should 10 refer to one measurement in the test. i.e. Executing run-perf-should once will result in 11 a single "run" of performance tests and each test may execute multiple "iterations" 12 to complete the run. 13 14 Unfortunately, we still overload the meaning of "runs" in "runs/s" (is "function calls/s") 15 but that could be addressed in a separate patch. 16 17 * Animation/balls.html: 18 * DOM/DOMTable.html: 19 * DOM/resources/dom-perf.js: 20 * Layout/floats_100_100.html: 21 * Layout/floats_100_100_nested.html: 22 * Layout/floats_20_100.html: 23 * Layout/floats_20_100_nested.html: 24 * Layout/floats_2_100.html: 25 * Layout/floats_2_100_nested.html: 26 * Layout/floats_50_100.html: 27 * Layout/floats_50_100_nested.html: 28 * Layout/subtree-detaching.html: 29 * Parser/html5-full-render.html: 30 * SVG/SvgHitTesting.html: 31 * resources/runner.js: 32 1 33 2012-11-13 Dimitri Glazkov <dglazkov@chromium.org> 2 34 -
trunk/PerformanceTests/DOM/DOMTable.html
r106386 r134637 8 8 <script> 9 9 runBenchmarkSuite(DOMTableTest, 10); 10 // runCount =10 since this test is very slow (~12m per run on Core i5 2.53Hz MacBookPro)10 // iterationCount: 10 since this test is very slow (~12m per run on Core i5 2.53Hz MacBookPro) 11 11 </script> 12 12 </body> -
trunk/PerformanceTests/DOM/resources/dom-perf.js
r129848 r134637 331 331 }; 332 332 333 function runBenchmarkSuite(suite, runCount) {333 function runBenchmarkSuite(suite, iterationCount) { 334 334 PerfTestRunner.measureTime({run: function () { 335 335 var container = document.getElementById('container'); … … 347 347 return totalMeanTime; 348 348 }, 349 runCount: runCount,349 iterationCount: iterationCount, 350 350 done: function () { 351 351 var container = document.getElementById('container'); -
trunk/PerformanceTests/Layout/floats_100_100.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(100, 100, 0, 3), 13 runCount: 2});13 iterationCount: 2}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_100_100_nested.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(100, 100, 100, 3), 13 runCount: 2});13 iterationCount: 2}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_20_100.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(20, 100, 0, 100), 13 runCount: 7});13 iterationCount: 7}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_20_100_nested.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(20, 100, 100, 100), 13 runCount: 6});13 iterationCount: 6}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_2_100.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(2, 100, 0, 500), 13 runCount: 10});13 iterationCount: 10}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_2_100_nested.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(2, 100, 100, 250), 13 runCount: 10});13 iterationCount: 10}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_50_100.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(50, 100, 0, 20), 13 runCount: 5});13 iterationCount: 5}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/floats_50_100_nested.html
r129824 r134637 11 11 <script> 12 12 PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(50, 100, 100, 20), 13 runCount: 5});13 iterationCount: 5}); 14 14 </script> 15 15 </body> -
trunk/PerformanceTests/Layout/subtree-detaching.html
r130341 r134637 37 37 buildTree(); 38 38 39 PerfTestRunner.measureTime({run: runTest, runCount: 20, description: "This benchmark checks the time spend in detaching an tree." });39 PerfTestRunner.measureTime({run: runTest, iterationCount: 20, description: "This benchmark checks the time spend in detaching an tree." }); 40 40 </script> 41 41 </body> -
trunk/PerformanceTests/Parser/html5-full-render.html
r132273 r134637 7 7 PerfTestRunner.measurePageLoadTime({path: "resources/html5.html", 8 8 chunkSize: 500000, // 6.09mb / 500k = approx 13 chunks (thus 13 forced layouts/style resolves). 9 runCount: 5 }); // Depending on the chosen chunk size, iterations can take over 60s to run on a fast machine, so we only run 5.9 iterationCount: 5 }); // Depending on the chosen chunk size, iterations can take over 60s to run on a fast machine, so we only run 5. 10 10 } 11 11 -
trunk/PerformanceTests/SVG/SvgHitTesting.html
r129824 r134637 112 112 if (wrapper) 113 113 wrapper.parentNode.removeChild(wrapper); 114 }, runCount: 10});114 }, iterationCount: 10}); 115 115 </script> 116 116 </body> -
trunk/PerformanceTests/resources/runner.js
r132316 r134637 12 12 (function () { 13 13 var logLines = null; 14 var completed Runs = -1;14 var completedIterations = -1; 15 15 var callsPerIteration = 1; 16 16 var currentTest = null; … … 18 18 var jsHeapResults = []; 19 19 var mallocHeapResults = []; 20 var runCount = undefined;20 var iterationCount = undefined; 21 21 22 22 var PerfTestRunner = {}; … … 168 168 } 169 169 currentTest = test; 170 runCount = test.runCount || 20;170 iterationCount = test.iterationCount || 20; 171 171 logLines = window.testRunner ? [] : null; 172 PerfTestRunner.log("Running " + runCount + " times");172 PerfTestRunner.log("Running " + iterationCount + " times"); 173 173 if (runner) 174 174 scheduleNextRun(runner); … … 185 185 } 186 186 187 completed Runs++;187 completedIterations++; 188 188 189 189 try { … … 194 194 } 195 195 196 if (completed Runs < runCount)196 if (completedIterations < iterationCount) 197 197 scheduleNextRun(runner); 198 198 else … … 203 203 function ignoreWarmUpAndLog(measuredValue) { 204 204 var labeledResult = measuredValue + " " + PerfTestRunner.unit; 205 if (completed Runs <= 0)205 if (completedIterations <= 0) 206 206 PerfTestRunner.log("Ignoring warm-up run (" + labeledResult + ")"); 207 207 else { … … 242 242 243 243 PerfTestRunner.measureValueAync = function (measuredValue) { 244 completed Runs++;244 completedIterations++; 245 245 246 246 try { … … 251 251 } 252 252 253 if (completed Runs >= runCount)253 if (completedIterations >= iterationCount) 254 254 finish(); 255 255 } … … 290 290 totalTime += callRunAndMeasureTime(callsPerIteration); 291 291 numberOfRuns += callsPerIteration; 292 if (completed Runs < 0 && totalTime < 100)292 if (completedIterations < 0 && totalTime < 100) 293 293 callsPerIteration = Math.max(10, 2 * callsPerIteration); 294 294 }
Note: See TracChangeset
for help on using the changeset viewer.