Changeset 90319 in webkit


Ignore:
Timestamp:
Jul 2, 2011 2:09:43 PM (13 years ago)
Author:
mjs@apple.com
Message:

2011-07-02 Maciej Stachowiak <mjs@apple.com>

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.
Location:
trunk/PerformanceTests/SunSpider
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/SunSpider/ChangeLog

    r90318 r90319  
     12011-07-02  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        SunSpider: all four bitops benchmarks can be replaced with NOP
     6        https://bugs.webkit.org/show_bug.cgi?id=38446
     7
     8        * tests/sunspider-1.0/bitops-3bit-bits-in-byte.js:
     9        (TimeFunc): Save the result.
     10        * tests/sunspider-1.0/bitops-bits-in-byte.js:
     11        (TimeFunc): Save the result.
     12        * tests/sunspider-1.0/bitops-bitwise-and.js: More explicitly
     13        save the results.
     14        * tests/sunspider-1.0/bitops-nsieve-bits.js:
     15        (sieve): Save the result.
     16
    1172011-07-02  Maciej Stachowiak  <mjs@apple.com>
    218
  • trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-3bit-bits-in-byte.js

    r52057 r90319  
    11// Copyright (c) 2004 by Arthur Langereis (arthur_ext at domain xfinitegames, tld com
     2
     3var result = 0;
    24
    35// 1 op = 6 ANDs, 3 SHRs, 3 SHLs, 4 assigns, 2 ADDs
     
    2628function TimeFunc(func) {
    2729var x, y, t;
     30var sum = 0;
    2831for(var x=0; x<500; x++)
    29 for(var y=0; y<256; y++) func(y);
     32for(var y=0; y<256; y++) sum += func(y);
     33return sum;
    3034}
    3135
    32 TimeFunc(fast3bitlookup);
     36sum = TimeFunc(fast3bitlookup);
  • trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bits-in-byte.js

    r52057 r90319  
    11// Copyright (c) 2004 by Arthur Langereis (arthur_ext at domain xfinitegames, tld com)
    22
     3
     4var result = 0;
    35
    46// 1 op = 2 assigns, 16 compare/branches, 8 ANDs, (0-8) ADDs, 8 SHLs
     
    1517function TimeFunc(func) {
    1618var x, y, t;
     19var sum = 0;
    1720for(var x=0; x<350; x++)
    18 for(var y=0; y<256; y++) func(y);
     21for(var y=0; y<256; y++) sum += func(y);
     22return sum;
    1923}
    2024
    21 TimeFunc(bitsinbyte);
     25result = TimeFunc(bitsinbyte);
  • trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-bitwise-and.js

    r52057 r90319  
    2727for (var i = 0; i < 600000; i++)
    2828    bitwiseAndValue = bitwiseAndValue & i;
     29
     30var result = butwiseAndValue;
  • trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/bitops-nsieve-bits.js

    r52057 r90319  
    2828        primes(isPrime, i);
    2929    }
     30    return isPrime;
    3031}
    3132
    32 sieve();
     33var result = sieve();
Note: See TracChangeset for help on using the changeset viewer.