Changeset 192663 in webkit


Ignore:
Timestamp:
Nov 19, 2015 3:14:55 PM (8 years ago)
Author:
mark.lam@apple.com
Message:

js/regress/script-tests/ftl-object-sub.js needs more iterations for benchmarking.
https://bugs.webkit.org/show_bug.cgi?id=151411

Reviewed by Filip Pizlo.

Previously, in r192392, I reduced the test iteration count to make the layout
test happy and not time out. Unfortunately, this defeats the use of this test
for benchmarking. I've changed it to now use different iteration counts
depending on who is running it. run-jsc-stress-tests is fine with the higher
iteration count.

Since this test is slow and only meant to test the FTL, I also changed the run
configuration to be runFTLNoCJIT to minimize the slowness hit when running jsc
stress tests.

  • js/regress/script-tests/ftl-object-sub.js:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r192660 r192663  
     12015-11-19  Mark Lam  <mark.lam@apple.com>
     2
     3        js/regress/script-tests/ftl-object-sub.js needs more iterations for benchmarking.
     4        https://bugs.webkit.org/show_bug.cgi?id=151411
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Previously, in r192392, I reduced the test iteration count to make the layout
     9        test happy and not time out.  Unfortunately, this defeats the use of this test
     10        for benchmarking.  I've changed it to now use different iteration counts
     11        depending on who is running it.  run-jsc-stress-tests is fine with the higher
     12        iteration count.
     13
     14        Since this test is slow and only meant to test the FTL, I also changed the run
     15        configuration to be runFTLNoCJIT to minimize the slowness hit when running jsc
     16        stress tests.
     17
     18        * js/regress/script-tests/ftl-object-sub.js:
     19
    1202015-11-19  Zalan Bujtas  <zalan@apple.com>
    221
  • trunk/LayoutTests/js/regress/script-tests/ftl-object-sub.js

    r192392 r192663  
    1 //@ runDefault
     1//@ runFTLNoCJIT
    22var o1 = {
    33    i: 0,
     
    2222noInline(foo);
    2323
    24 for (var i = 0; i <= 10000; i++) {
     24var iterations;
     25var expectedResult;
     26if (this.window) {
     27    // The layout test doesn't like too many iterations and may time out.
     28    iterations = 10000;
     29    expectedResult = 200020;
     30} else {
     31    iterations = 100000;
     32    expectedResult = 2000020;
     33}
     34
     35
     36for (var i = 0; i <= iterations; i++) {
    2537    o1.i = i + 2;
    2638    o2.i = i;
     
    2840}
    2941
    30 if (result != 200020)
     42if (result != expectedResult)
    3143    throw "Bad result: " + result;
Note: See TracChangeset for help on using the changeset viewer.