Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: third_party/WebKit/PerformanceTests/Mutation/append-child-with-ranges.html

Issue 2034023003: Make appendChild/insertBefore faster with active ranges (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-03T18:48:37 Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/PerformanceTests/Mutation/append-child-with-ranges.html
diff --git a/third_party/WebKit/PerformanceTests/Mutation/append-child.html b/third_party/WebKit/PerformanceTests/Mutation/append-child-with-ranges.html
similarity index 87%
copy from third_party/WebKit/PerformanceTests/Mutation/append-child.html
copy to third_party/WebKit/PerformanceTests/Mutation/append-child-with-ranges.html
index 3a128b1909f7fafa27349bb393bf48f883f53229..a41a792f7235a7f935aefa8c697993c27010007b 100644
--- a/third_party/WebKit/PerformanceTests/Mutation/append-child.html
+++ b/third_party/WebKit/PerformanceTests/Mutation/append-child-with-ranges.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<!-- Identical to "append-child.html" but having 10,000 active ranges -->
keishi 2016/06/04 07:02:45 Shouldn't this test be based on PerformanceTests/B
yosin_UTC9 2016/06/06 05:21:26 Done
<body>
<pre id="log"></pre>
<script src="../resources/runner.js"></script>
@@ -10,6 +11,13 @@ var observing = false;
var elems = [];
for (var i = 0; i < 50000; ++i)
elems[i] = document.createElement('div');
+var ranges = [];
+for (var i = 0; i < 100; ++i) {
+ var range = new Range();
+ ranges[i] = range;
+ range.selectNodeContents(document.body);
+}
+
var observer = new WebKitMutationObserver(listener);
var tickledSpan = document.createElement('span');
observer.observe(tickledSpan, {attributes: true});

Powered by Google App Engine
This is Rietveld 408576698