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

Unified Diff: third_party/WebKit/PerformanceTests/Layout/attach-inlines.html

Issue 1550513003: Skip dirtying lines when attaching children prior to attaching oneself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip dirtying lines when attaching children prior to attaching oneself 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/line/LineBoxList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Layout/attach-inlines.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/attach-inlines.html b/third_party/WebKit/PerformanceTests/Layout/attach-inlines.html
new file mode 100644
index 0000000000000000000000000000000000000000..f097c49b63be8bb67ca3d978814f322807f97342
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Layout/attach-inlines.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+ <div id="div" style="display: none;">
+ <span id="span"></span>
+ </div>
+<script src="../resources/runner.js"></script>
+<script>
+ var div = document.getElementById("div");
+ var style = div.style;
+
+ function createInlines() {
+ var innerHTML = "<span>Text</span>";
esprehn 2016/07/18 22:16:51 innerHTML = "<span>Text</span>".repeat(N);
+ for (var x = 0; x < 500; ++x){
+ innerHTML = innerHTML + "<span>Text</span>";
esprehn 2016/07/18 22:16:51 this is making it exponentially bigger btw, lets j
+ }
+ return innerHTML;
+ }
+
+ var originalLines = createInlines();
+ span.innerHTML = originalLines;
esprehn 2016/07/18 22:16:51 do all mutations inside the test
+
+ function test() {
+ style.display = "block";
+ PerfTestRunner.forceLayout();
+
+ span.innerHTML += originalLines;
esprehn 2016/07/18 22:16:51 This is measuring the performance of serializing t
+ PerfTestRunner.forceLayout();
+
+ style.display = "none";
+ span.innerHTML = originalLines;
+ PerfTestRunner.forceLayout();
+ }
+
+ PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of attaching a large number of inlines to an inline.",
+ run: test
+ });
+</script>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/line/LineBoxList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698