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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/runner.js"></script>
4 <div id="container"></div>
5 <script>
6 // This test measures the lifecycle update performance when adding small
7 // amounts of text to a large page.
8
9 var initialTextCount = 20000;
10 var initialText = "";
11 for (var i = 0; i < initialTextCount; i++)
12 initialText += '<span>a</span>';
13
14 var textToAppendEachRun = 5;
15 PerfTestRunner.measureFrameTime({
16 run: function() {
17 var text = document.createElement('span');
18 text.innerText = 'abc';
19 container.appendChild(text);
20 },
21 setup: function() {
22 container.innerHTML = initialText;
23 },
24 done: function() {
25 container.innerHTML = "";
26 },
27 warmUpCount: 5,
28 });
29 </script>
30 </body>
OLDNEW
« 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