Build fix. Don't adjust calls per iteration in the second run.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2012 18:59:03 +0000 (18:59 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2012 18:59:03 +0000 (18:59 +0000)
* resources/runner.js:
(PerfTestRunner._perSecondRunner):

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

PerformanceTests/ChangeLog
PerformanceTests/resources/runner.js

index 33c05b0..8d8809b 100644 (file)
@@ -1,3 +1,10 @@
+2012-05-14  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Build fix. Don't adjust calls per iteration in the second run.
+
+        * resources/runner.js:
+        (PerfTestRunner._perSecondRunner):
+
 2012-05-13  Ryosuke Niwa  <rniwa@webkit.org>
 
         performance tests should be able to measure runs/sec rather than time
index 4087eef..65ac5cc 100644 (file)
@@ -196,7 +196,7 @@ PerfTestRunner._perSecondRunner = function () {
     while (totalTime < timeToRun) {
         totalTime += this._perSecondRunnerIterator(callsPerIteration);
         i += callsPerIteration;
-        if (this._completedRuns <= 0 && totalTime < 100)
+        if (this._completedRuns < 0 && totalTime < 100)
             callsPerIteration = Math.max(10, 2 * callsPerIteration);
     }
     this._callsPerIteration = callsPerIteration;