Changeset 137990 in webkit


Ignore:
Timestamp:
Dec 17, 2012, 11:28:52 PM (13 years ago)
Author:
shinyak@chromium.org
Message:

[Shadow] LargeDistributionWithLayout.html should be updated
https://bugs.webkit.org/show_bug.cgi?id=105242

Reviewed by Ryosuke Niwa.

Since this test was written when distribution took O(N2). However, now it's almost O(N), so this test finishes
in very short time. We should convert it unit to runs/s.

This test contains a some error to cause test failure, e.g. using obsolete API, so they also should be fixed.

  • ShadowDOM/LargeDistributionWithLayout.html:
Location:
trunk/PerformanceTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r137623 r137990  
     12012-12-17  Shinya Kawanaka  <shinyak@chromium.org>
     2
     3        [Shadow] LargeDistributionWithLayout.html should be updated
     4        https://bugs.webkit.org/show_bug.cgi?id=105242
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Since this test was written when distribution took O(N^2). However, now it's almost O(N), so this test finishes
     9        in very short time. We should convert it unit to runs/s.
     10
     11        This test contains a some error to cause test failure, e.g. using obsolete API, so they also should be fixed.
     12
     13        * ShadowDOM/LargeDistributionWithLayout.html:
     14
    1152012-12-13  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/PerformanceTests/ShadowDOM/LargeDistributionWithLayout.html

    r136805 r137990  
    2424    }
    2525
    26     var content = document.createElement('content');
    27     var shadowRoot = new WebKitShadowRoot(host);
     26    window.content = document.createElement('content');
     27    var shadowRoot = host.webkitCreateShadowRoot();
    2828    shadowRoot.appendChild(content);
    2929}
     
    3232{
    3333    var host = document.getElementById('host');
     34    var content = window.content;
    3435    var nLoops = window.nLoops;
    3536
     
    4748}
    4849
    49 
    5050setup();
    5151
    52 PerfTestRunner.measureTime({
     52PerfTestRunner.measureRunsPerSecond({
    5353    description: "Measure Distribution and Layout time (with a lot of host children)",
    5454    run: run,
Note: See TracChangeset for help on using the changeset viewer.