Title: [90319] trunk/PerformanceTests/SunSpider
Revision
90319
Author
[email protected]
Date
2011-07-02 14:09:43 -0700 (Sat, 02 Jul 2011)

Log Message

2011-07-02  Maciej Stachowiak  <[email protected]>

        Reviewed by Anders Carlsson.

        SunSpider: all four bitops benchmarks can be replaced with NOP
        https://bugs.webkit.org/show_bug.cgi?id=38446

        * tests/sunspider-1.0/bitops-3bit-bits-in-byte.js:
        (TimeFunc): Save the result.
        * tests/sunspider-1.0/bitops-bits-in-byte.js:
        (TimeFunc): Save the result.
        * tests/sunspider-1.0/bitops-bitwise-and.js: More explicitly
        save the results.
        * tests/sunspider-1.0/bitops-nsieve-bits.js:
        (sieve): Save the result.

Modified Paths

Diff

Modified: trunk/PerformanceTests/SunSpider/ChangeLog (90318 => 90319)


--- trunk/PerformanceTests/SunSpider/ChangeLog	2011-07-02 20:57:40 UTC (rev 90318)
+++ trunk/PerformanceTests/SunSpider/ChangeLog	2011-07-02 21:09:43 UTC (rev 90319)
@@ -1,5 +1,21 @@
 2011-07-02  Maciej Stachowiak  <[email protected]>
 
+        Reviewed by Anders Carlsson.
+
+        SunSpider: all four bitops benchmarks can be replaced with NOP
+        https://bugs.webkit.org/show_bug.cgi?id=38446
+
+        * tests/sunspider-1.0/bitops-3bit-bits-in-byte.js:
+        (TimeFunc): Save the result.
+        * tests/sunspider-1.0/bitops-bits-in-byte.js:
+        (TimeFunc): Save the result.
+        * tests/sunspider-1.0/bitops-bitwise-and.js: More explicitly
+        save the results.
+        * tests/sunspider-1.0/bitops-nsieve-bits.js:
+        (sieve): Save the result.
+
+2011-07-02  Maciej Stachowiak  <[email protected]>
+
         SunSpider: string-validate-input.js uses an undeclared variable named 'name', which is a DOM API
         https://bugs.webkit.org/show_bug.cgi?id=60937
 

Modified: trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-3bit-bits-in-byte.js (90318 => 90319)


--- trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-3bit-bits-in-byte.js	2011-07-02 20:57:40 UTC (rev 90318)
+++ trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-3bit-bits-in-byte.js	2011-07-02 21:09:43 UTC (rev 90319)
@@ -1,5 +1,7 @@
 // Copyright (c) 2004 by Arthur Langereis (arthur_ext at domain xfinitegames, tld com
 
+var result = 0;
+
 // 1 op = 6 ANDs, 3 SHRs, 3 SHLs, 4 assigns, 2 ADDs
 // O(1)
 function fast3bitlookup(b) {
@@ -25,8 +27,10 @@
 
 function TimeFunc(func) {
 var x, y, t;
+var sum = 0;
 for(var x=0; x<500; x++)
-for(var y=0; y<256; y++) func(y);
+for(var y=0; y<256; y++) sum += func(y);
+return sum;
 }
 
-TimeFunc(fast3bitlookup);
+sum = TimeFunc(fast3bitlookup);

Modified: trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bits-in-byte.js (90318 => 90319)


--- trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bits-in-byte.js	2011-07-02 20:57:40 UTC (rev 90318)
+++ trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bits-in-byte.js	2011-07-02 21:09:43 UTC (rev 90319)
@@ -1,6 +1,8 @@
 // Copyright (c) 2004 by Arthur Langereis (arthur_ext at domain xfinitegames, tld com)
 
 
+var result = 0;
+
 // 1 op = 2 assigns, 16 compare/branches, 8 ANDs, (0-8) ADDs, 8 SHLs
 // O(n)
 function bitsinbyte(b) {
@@ -14,8 +16,10 @@
 
 function TimeFunc(func) {
 var x, y, t;
+var sum = 0;
 for(var x=0; x<350; x++)
-for(var y=0; y<256; y++) func(y);
+for(var y=0; y<256; y++) sum += func(y);
+return sum;
 }
 
-TimeFunc(bitsinbyte);
+result = TimeFunc(bitsinbyte);

Modified: trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bitwise-and.js (90318 => 90319)


--- trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bitwise-and.js	2011-07-02 20:57:40 UTC (rev 90318)
+++ trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bitwise-and.js	2011-07-02 21:09:43 UTC (rev 90319)
@@ -26,3 +26,5 @@
 bitwiseAndValue = 4294967296;
 for (var i = 0; i < 600000; i++)
     bitwiseAndValue = bitwiseAndValue & i;
+
+var result = butwiseAndValue;

Modified: trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-nsieve-bits.js (90318 => 90319)


--- trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-nsieve-bits.js	2011-07-02 20:57:40 UTC (rev 90318)
+++ trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-nsieve-bits.js	2011-07-02 21:09:43 UTC (rev 90319)
@@ -27,6 +27,7 @@
         var isPrime = new Array((10000<<i)+31>>5);
         primes(isPrime, i);
     }
+    return isPrime;
 }
 
-sieve();
+var result = sieve();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to