Fix the graphics benchmark complexity bounds adjustment
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Nov 2015 23:06:27 +0000 (23:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Nov 2015 23:06:27 +0000 (23:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=151670

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-11-30
Reviewed by Simon Fraser.

Make sure the graphics benchmark complexity bounds adjustment is applied
to the absolute lower bound.

* Animometer/tests/resources/math.js:
(PIDController.prototype._saturate):

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

PerformanceTests/Animometer/tests/resources/math.js
PerformanceTests/ChangeLog

index 1b3ec09..14982dd 100644 (file)
@@ -391,9 +391,10 @@ PIDController.prototype =
             break;
         
         case PIDController.stages.SATURATE:
+            const limitPercentage = 0.90;
+            var min = this._min > 0 ? Math.min(this._min, this._max * limitPercentage) : this._min;
+            var max = this._max < 0 ? Math.max(this._max, this._min * limitPercentage) : this._max;
             var out = this._out + u;
-            var min = Math.min(this._min, this._max * 0.70);
-            var max = this._max;
 
             // Clip the controller output to the min-max values
             out = Math.max(Math.min(max, out), min);
index 5d13874..8aa1fab 100644 (file)
@@ -1,5 +1,18 @@
 2015-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
 
+        Fix the graphics benchmark complexity bounds adjustment
+        https://bugs.webkit.org/show_bug.cgi?id=151670
+
+        Reviewed by Simon Fraser.
+
+        Make sure the graphics benchmark complexity bounds adjustment is applied
+        to the absolute lower bound.
+
+        * Animometer/tests/resources/math.js:
+        (PIDController.prototype._saturate):
+
+2015-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
+
         Add an option to select the results form the graphics benchmark
         https://bugs.webkit.org/show_bug.cgi?id=151666