Add PerformanceTest for document startup via iframe append/remove
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2013 01:58:41 +0000 (01:58 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2013 01:58:41 +0000 (01:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111389

Reviewed by Kentaro Hara.

We'd like pages with lots of iframes to be fast.
This test shows that at least for V8/Chromium we spend
all our time booting v8.

On my 32-core linux machine I see about 70 runs/sec in
Release and 5 runs/sec in Debug.

* DOM/iframe-append-remove.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144704 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/DOM/README [new file with mode: 0644]
PerformanceTests/Parser/iframe-append-remove.html [new file with mode: 0644]

index a4ce6c1..9d8f979 100644 (file)
@@ -1,3 +1,19 @@
+2013-03-04  Eric Seidel  <eric@webkit.org>
+
+        Add PerformanceTest for document startup via iframe append/remove
+        https://bugs.webkit.org/show_bug.cgi?id=111389
+
+        Reviewed by Kentaro Hara.
+
+        We'd like pages with lots of iframes to be fast.
+        This test shows that at least for V8/Chromium we spend
+        all our time booting v8.
+
+        On my 32-core linux machine I see about 70 runs/sec in
+        Release and 5 runs/sec in Debug.
+
+        * DOM/iframe-append-remove.html: Added.
+
 2013-03-03  Ryosuke Niwa  <rniwa@webkit.org>
 
         Some perf. tests have variances that differ greatly between runs
diff --git a/PerformanceTests/DOM/README b/PerformanceTests/DOM/README
new file mode 100644 (file)
index 0000000..32a2abc
--- /dev/null
@@ -0,0 +1 @@
+Do not touch this directory without talking to rniwa@apple.com.  He has opinions.
diff --git a/PerformanceTests/Parser/iframe-append-remove.html b/PerformanceTests/Parser/iframe-append-remove.html
new file mode 100644 (file)
index 0000000..d12ab66
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../resources/runner.js"></script>
+<script>
+
+PerfTestRunner.measureRunsPerSecond({
+    description: "This benchmark tests adding/removing an iframe from the DOM",
+    run: function() {
+        var iframe = document.createElement("iframe");
+        document.body.appendChild(iframe);
+        document.body.removeChild(iframe);
+    }});
+</script>
+</body>
+</html>