https://bugs.webkit.org/show_bug.cgi?id=102208
Reviewed by Tony Chang.
Prior to this patch, there were terminology confusions between "runs" and "iterations".
The term "run" should refer to running a performance test once, and "iteration" should
refer to one measurement in the test. i.e. Executing run-perf-should once will result in
a single "run" of performance tests and each test may execute multiple "iterations"
to complete the run.
Unfortunately, we still overload the meaning of "runs" in "runs/s" (is "function calls/s")
but that could be addressed in a separate patch.
* Animation/balls.html:
* DOM/DOMTable.html:
* DOM/resources/dom-perf.js:
* Layout/floats_100_100.html:
* Layout/floats_100_100_nested.html:
* Layout/floats_20_100.html:
* Layout/floats_20_100_nested.html:
* Layout/floats_2_100.html:
* Layout/floats_2_100_nested.html:
* Layout/floats_50_100.html:
* Layout/floats_50_100_nested.html:
* Layout/subtree-detaching.html:
* Parser/html5-full-render.html:
* SVG/SvgHitTesting.html:
* resources/runner.js:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134637
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
var particles = [];
window.onload = function () {
- PerfTestRunner.prepareToMeasureValuesAsync({runCount: 10, done: onCompletedRun, unit: 'fps'});
+ PerfTestRunner.prepareToMeasureValuesAsync({iterationCount: 10, done: onCompletedRun, unit: 'fps'});
// Create the particles
for (var i = 0; i < MAX_PARTICLES; i++)
+2012-11-14 Ryosuke Niwa <rniwa@webkit.org>
+
+ runCount in runner.js should be renamed to iterationCount
+ https://bugs.webkit.org/show_bug.cgi?id=102208
+
+ Reviewed by Tony Chang.
+
+ Prior to this patch, there were terminology confusions between "runs" and "iterations".
+ The term "run" should refer to running a performance test once, and "iteration" should
+ refer to one measurement in the test. i.e. Executing run-perf-should once will result in
+ a single "run" of performance tests and each test may execute multiple "iterations"
+ to complete the run.
+
+ Unfortunately, we still overload the meaning of "runs" in "runs/s" (is "function calls/s")
+ but that could be addressed in a separate patch.
+
+ * Animation/balls.html:
+ * DOM/DOMTable.html:
+ * DOM/resources/dom-perf.js:
+ * Layout/floats_100_100.html:
+ * Layout/floats_100_100_nested.html:
+ * Layout/floats_20_100.html:
+ * Layout/floats_20_100_nested.html:
+ * Layout/floats_2_100.html:
+ * Layout/floats_2_100_nested.html:
+ * Layout/floats_50_100.html:
+ * Layout/floats_50_100_nested.html:
+ * Layout/subtree-detaching.html:
+ * Parser/html5-full-render.html:
+ * SVG/SvgHitTesting.html:
+ * resources/runner.js:
+
2012-11-13 Dimitri Glazkov <dglazkov@chromium.org>
Unreviewed, rolling out r134367.
<script type="text/javascript" src="resources/dom-perf/domtable.js"></script>
<script>
runBenchmarkSuite(DOMTableTest, 10);
-// runCount = 10 since this test is very slow (~12m per run on Core i5 2.53Hz MacBookPro)
+// iterationCount: 10 since this test is very slow (~12m per run on Core i5 2.53Hz MacBookPro)
</script>
</body>
</html>
return this.generateDOMTree(26, 26, 4);
};
-function runBenchmarkSuite(suite, runCount) {
+function runBenchmarkSuite(suite, iterationCount) {
PerfTestRunner.measureTime({run: function () {
var container = document.getElementById('container');
var content = document.getElementById('benchmark_content');
}
return totalMeanTime;
},
- runCount: runCount,
+ iterationCount: iterationCount,
done: function () {
var container = document.getElementById('container');
if (container.firstChild)
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(100, 100, 0, 3),
- runCount: 2});
+ iterationCount: 2});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(100, 100, 100, 3),
- runCount: 2});
+ iterationCount: 2});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(20, 100, 0, 100),
- runCount: 7});
+ iterationCount: 7});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(20, 100, 100, 100),
- runCount: 6});
+ iterationCount: 6});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(2, 100, 0, 500),
- runCount: 10});
+ iterationCount: 10});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(2, 100, 100, 250),
- runCount: 10});
+ iterationCount: 10});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(50, 100, 0, 20),
- runCount: 5});
+ iterationCount: 5});
</script>
</body>
</html>
<pre id="log"></pre>
<script>
PerfTestRunner.measureTime({run: createFloatsLayoutTestFunction(50, 100, 100, 20),
- runCount: 5});
+ iterationCount: 5});
</script>
</body>
</html>
buildTree();
-PerfTestRunner.measureTime({run: runTest, runCount: 20, description: "This benchmark checks the time spend in detaching an tree." });
+PerfTestRunner.measureTime({run: runTest, iterationCount: 20, description: "This benchmark checks the time spend in detaching an tree." });
</script>
</body>
</html>
window.onload = function() {
PerfTestRunner.measurePageLoadTime({path: "resources/html5.html",
chunkSize: 500000, // 6.09mb / 500k = approx 13 chunks (thus 13 forced layouts/style resolves).
- runCount: 5 }); // Depending on the chosen chunk size, iterations can take over 60s to run on a fast machine, so we only run 5.
+ iterationCount: 5 }); // Depending on the chosen chunk size, iterations can take over 60s to run on a fast machine, so we only run 5.
}
</script>
var wrapper = document.getElementById('wrapper');
if (wrapper)
wrapper.parentNode.removeChild(wrapper);
- }, runCount: 10});
+ }, iterationCount: 10});
</script>
</body>
</html>
(function () {
var logLines = null;
- var completedRuns = -1;
+ var completedIterations = -1;
var callsPerIteration = 1;
var currentTest = null;
var results = [];
var jsHeapResults = [];
var mallocHeapResults = [];
- var runCount = undefined;
+ var iterationCount = undefined;
var PerfTestRunner = {};
return;
}
currentTest = test;
- runCount = test.runCount || 20;
+ iterationCount = test.iterationCount || 20;
logLines = window.testRunner ? [] : null;
- PerfTestRunner.log("Running " + runCount + " times");
+ PerfTestRunner.log("Running " + iterationCount + " times");
if (runner)
scheduleNextRun(runner);
}
return;
}
- completedRuns++;
+ completedIterations++;
try {
ignoreWarmUpAndLog(measuredValue);
return;
}
- if (completedRuns < runCount)
+ if (completedIterations < iterationCount)
scheduleNextRun(runner);
else
finish();
function ignoreWarmUpAndLog(measuredValue) {
var labeledResult = measuredValue + " " + PerfTestRunner.unit;
- if (completedRuns <= 0)
+ if (completedIterations <= 0)
PerfTestRunner.log("Ignoring warm-up run (" + labeledResult + ")");
else {
results.push(measuredValue);
}
PerfTestRunner.measureValueAync = function (measuredValue) {
- completedRuns++;
+ completedIterations++;
try {
ignoreWarmUpAndLog(measuredValue);
return;
}
- if (completedRuns >= runCount)
+ if (completedIterations >= iterationCount)
finish();
}
while (totalTime < timeToRun) {
totalTime += callRunAndMeasureTime(callsPerIteration);
numberOfRuns += callsPerIteration;
- if (completedRuns < 0 && totalTime < 100)
+ if (completedIterations < 0 && totalTime < 100)
callsPerIteration = Math.max(10, 2 * callsPerIteration);
}