Title: [137990] trunk/PerformanceTests
Revision
137990
Author
[email protected]
Date
2012-12-17 23:28:52 -0800 (Mon, 17 Dec 2012)

Log 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(N^2). 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:

Modified Paths

Diff

Modified: trunk/PerformanceTests/ChangeLog (137989 => 137990)


--- trunk/PerformanceTests/ChangeLog	2012-12-18 07:14:18 UTC (rev 137989)
+++ trunk/PerformanceTests/ChangeLog	2012-12-18 07:28:52 UTC (rev 137990)
@@ -1,3 +1,17 @@
+2012-12-17  Shinya Kawanaka  <[email protected]>
+
+        [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(N^2). 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:
+
 2012-12-13  Ryosuke Niwa  <[email protected]>
 
         [chromium perf] DOM/DOMWalk.html failures

Modified: trunk/PerformanceTests/ShadowDOM/LargeDistributionWithLayout.html (137989 => 137990)


--- trunk/PerformanceTests/ShadowDOM/LargeDistributionWithLayout.html	2012-12-18 07:14:18 UTC (rev 137989)
+++ trunk/PerformanceTests/ShadowDOM/LargeDistributionWithLayout.html	2012-12-18 07:28:52 UTC (rev 137990)
@@ -23,14 +23,15 @@
         host.appendChild(div);
     }
 
-    var content = document.createElement('content');
-    var shadowRoot = new WebKitShadowRoot(host);
+    window.content = document.createElement('content');
+    var shadowRoot = host.webkitCreateShadowRoot();
     shadowRoot.appendChild(content);
 }
 
 function run()
 {
     var host = document.getElementById('host');
+    var content = window.content;
     var nLoops = window.nLoops;
 
     var div = document.createElement('div');
@@ -46,10 +47,9 @@
     wrapper.innerHTML = '';
 }
 
-
 setup();
 
-PerfTestRunner.measureTime({
+PerfTestRunner.measureRunsPerSecond({
     description: "Measure Distribution and Layout time (with a lot of host children)",
     run: run,
     done: done
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to