Title: [150341] trunk/PerformanceTests
Revision
150341
Author
[email protected]
Date
2013-05-18 12:27:29 -0700 (Sat, 18 May 2013)

Log Message

Add a performance test for copying
https://bugs.webkit.org/show_bug.cgi?id=116394

Reviewed by Andreas Kling.

Added. We're going to skip this test by default since it's such a microbenchmark, and also because
it currently takes 30 minutes to run. As insane as it sounds, each copy takes rouhgly 57 seconds.

Running Interactive/CopyAll.html (1 of 1)
RESULT Interactive: CopyAll: Time= 57618.05 ms
median= 57135.0 ms, stdev= 1542.07271571 ms, min= 55095.0 ms, max= 60913.0 ms
RESULT Interactive: CopyAll: JSHeap= 102811.2 bytes
median= 103272.0 bytes, stdev= 1115.28148913 bytes, min= 100648.0 bytes, max= 103504.0 bytes
RESULT Interactive: CopyAll: Malloc= 446408712.0 bytes
median= 459156772.0 bytes, stdev= 20007346.3266 bytes, min= 415564040.0 bytes, max= 462011928.0 bytes
Finished: 1766.883236 s

* Interactive/CopyAll.html: Added.
* Skipped:

Modified Paths

Added Paths

Diff

Modified: trunk/PerformanceTests/ChangeLog (150340 => 150341)


--- trunk/PerformanceTests/ChangeLog	2013-05-18 19:09:07 UTC (rev 150340)
+++ trunk/PerformanceTests/ChangeLog	2013-05-18 19:27:29 UTC (rev 150341)
@@ -1,3 +1,25 @@
+2013-05-18  Ryosuke Niwa  <[email protected]>
+
+        Add a performance test for copying
+        https://bugs.webkit.org/show_bug.cgi?id=116394
+
+        Reviewed by Andreas Kling.
+
+        Added. We're going to skip this test by default since it's such a microbenchmark, and also because
+        it currently takes 30 minutes to run. As insane as it sounds, each copy takes rouhgly 57 seconds.
+
+        Running Interactive/CopyAll.html (1 of 1)
+        RESULT Interactive: CopyAll: Time= 57618.05 ms
+        median= 57135.0 ms, stdev= 1542.07271571 ms, min= 55095.0 ms, max= 60913.0 ms
+        RESULT Interactive: CopyAll: JSHeap= 102811.2 bytes
+        median= 103272.0 bytes, stdev= 1115.28148913 bytes, min= 100648.0 bytes, max= 103504.0 bytes
+        RESULT Interactive: CopyAll: Malloc= 446408712.0 bytes
+        median= 459156772.0 bytes, stdev= 20007346.3266 bytes, min= 415564040.0 bytes, max= 462011928.0 bytes
+        Finished: 1766.883236 s
+
+        * Interactive/CopyAll.html: Added.
+        * Skipped:
+
 2013-05-13  Seokju Kwon  <[email protected]>
 
         Web Inspector: Get rid of native-memory-snapshot in performance test

Added: trunk/PerformanceTests/Interactive/CopyAll.html (0 => 150341)


--- trunk/PerformanceTests/Interactive/CopyAll.html	                        (rev 0)
+++ trunk/PerformanceTests/Interactive/CopyAll.html	2013-05-18 19:27:29 UTC (rev 150341)
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<script>
+
+function startTest() {
+    var iframe = document.querySelector('iframe');
+    if (!iframe.contentDocument.queryCommandSupported('Copy')) {
+        alert('execCommand("copy") is not supported.');
+        if (window.testRunner)
+            testRunner.notifyDone();
+        return;
+    }
+
+    PerfTestRunner.measureTime({
+        unit: 'ms',
+        setup: function () {
+            document.querySelector('iframe').contentDocument.execCommand('SelectAll');
+        },
+        run: function () {
+            document.querySelector('iframe').contentDocument.execCommand('Copy');
+        },
+        done: function () {
+            document.querySelector('iframe').parentNode.removeChild(iframe);
+        }
+    });
+}
+
+</script>
+<iframe src="" _onload_="startTest()" width="800" height="600">
+</body>
+</html>

Modified: trunk/PerformanceTests/Skipped (150340 => 150341)


--- trunk/PerformanceTests/Skipped	2013-05-18 19:09:07 UTC (rev 150340)
+++ trunk/PerformanceTests/Skipped	2013-05-18 19:27:29 UTC (rev 150341)
@@ -1,6 +1,7 @@
 # Micro benchmarks not worth running at the moment.
 DOM/TraverseChildNodes.html
 Interactive/SelectAll.html
+Interactive/CopyAll.html
 
 # Not enabled by default on some ports
 Mutation
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to