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

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: 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>
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">
11 <div style="display: inline-block;"></div>
12 <div>
13 <script>
14 var target = document.getElementById("test");
15 function test() {
16 for (var i = 0; i < 100; i++) {
17 target.innerHTML += ' <div style="display: inline-block;"></di v> ';
18 PerfTestRunner.forceLayoutOrFullFrame();
19 }
20 target.innerHTML = '<div style="display: inline-block;"></div>';
esprehn 2015/05/04 21:22:40 ditto, this doesn't benchmark anything related to
21 }
22
23 PerfTestRunner.measureRunsPerSecond({
24 description: "Measures performance of layout adding whitespace to a table with anonymous descendants.",
25 run: test
26 });
27 </script>
28 </body>
29 </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