Title: [170591] trunk/LayoutTests
Revision
170591
Author
msab...@apple.com
Date
2014-06-30 11:22:25 -0700 (Mon, 30 Jun 2014)

Log Message

Reduce memory required for js/typedarray-zero-size.js
https://bugs.webkit.org/show_bug.cgi?id=134448

Reviewed by Mark Hahnenberg.

Reduce the loop count from 10000 to 4000 to further reduce memory requirements
on older devices.

* js/script-tests/typedarray-zero-size.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (170590 => 170591)


--- trunk/LayoutTests/ChangeLog	2014-06-30 18:06:56 UTC (rev 170590)
+++ trunk/LayoutTests/ChangeLog	2014-06-30 18:22:25 UTC (rev 170591)
@@ -3,6 +3,18 @@
         Reduce memory required for js/typedarray-zero-size.js
         https://bugs.webkit.org/show_bug.cgi?id=134448
 
+        Reviewed by Mark Hahnenberg.
+
+        Reduce the loop count from 10000 to 4000 to further reduce memory requirements
+        on older devices.
+
+        * js/script-tests/typedarray-zero-size.js:
+
+2014-06-30  Michael Saboff  <msab...@apple.com>
+
+        Reduce memory required for js/typedarray-zero-size.js
+        https://bugs.webkit.org/show_bug.cgi?id=134448
+
         Reviewed by Darin Adler.
 
         Making the loop count down reduces memory usage from ~190MB to ~22MB while

Modified: trunk/LayoutTests/js/script-tests/typedarray-zero-size.js (170590 => 170591)


--- trunk/LayoutTests/js/script-tests/typedarray-zero-size.js	2014-06-30 18:06:56 UTC (rev 170590)
+++ trunk/LayoutTests/js/script-tests/typedarray-zero-size.js	2014-06-30 18:22:25 UTC (rev 170591)
@@ -10,7 +10,7 @@
 
 var result = 0;
 
-for (var i = 10000; i > 0; i--) {
+for (var i = 4000; i > 0; i--) {
     var newArray = foo();
     var otherArray = new Array(i);
     for (var j = 0; j < i; ++j)
@@ -18,5 +18,5 @@
     result += otherArray[i - 1];
 }
 
-if (result != (10000 * 9999) / 2)
+if (result != (4000 * 3999) / 2)
     throw "Bad result: " + result;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to