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

Side by Side Diff: PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html

Issue 1126673002: Test out performance when adding whitespace to the DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
esprehn 2015/05/04 22:14:39 ditto.
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>Adding whitespace to table with anonymous descendant performance test </title>
6 <script src="../resources/runner.js"></script>
7 </head>
8 <body>
9 <pre id="log"></pre>
10 <div style="display: table;" id="test"></div>
11 <script>
12 var target = document.getElementById("test");
13 function test() {
14 target.innerHTML = '<div style="display: inline-block;"></div>';
esprehn 2015/05/04 22:14:38 Why inline blocks? This just makes us create an an
15 for (var i = 0; i < 1000; i++) {
16 var testElement = document.createTextNode(" ");
17 target.insertBefore(testElement, target.firstChild);
18 }
19 document.body.offsetTop;
20 }
21
22 PerfTestRunner.measureRunsPerSecond({
23 description: "Is sensitive to the performance of layout adding white space to a table with anonymous descendants.",
24 run: test
25 });
26 </script>
27 </body>
28 </html>
OLDNEW
« PerformanceTests/Layout/AddWhitespace.html ('K') | « PerformanceTests/Layout/AddWhitespace.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698