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

Unified Diff: third_party/WebKit/PerformanceTests/Paint/appending-text.html

Issue 2621483002: Skip geometry mapping when source and destination spaces are equal (Closed)
Patch Set: Created 3 years, 11 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/platform/graphics/paint/GeometryMapper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Paint/appending-text.html
diff --git a/third_party/WebKit/PerformanceTests/Paint/appending-text.html b/third_party/WebKit/PerformanceTests/Paint/appending-text.html
new file mode 100644
index 0000000000000000000000000000000000000000..d9c9ceb06b0dc142b390a4c790d575d7b62585e1
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Paint/appending-text.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<body>
+<script src="../resources/runner.js"></script>
+<div id="container"></div>
+<script>
+// This test measures the lifecycle update performance when adding small
+// amounts of text to a large page.
+
+var initialTextCount = 20000;
+var initialText = "";
+for (var i = 0; i < initialTextCount; i++)
+ initialText += '<span>a</span>';
+
+var textToAppendEachRun = 5;
+PerfTestRunner.measureFrameTime({
+ run: function() {
+ var text = document.createElement('span');
+ text.innerText = 'abc';
+ container.appendChild(text);
+ },
+ setup: function() {
+ container.innerHTML = initialText;
+ },
+ done: function() {
+ container.innerHTML = "";
+ },
+ warmUpCount: 5,
+});
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698