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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/v1-distribution.html

Issue 1995203002: Rewrite Shadow DOM distribution engine to support partial synchronous distribution for v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No longer FAIL: imported/wpt/shadow-dom/HTMLSlotElement-interface.html 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/runner.js"></script> 2 <script src="../resources/runner.js"></script>
3 <!-- This is a micro benchmark to catch an unintentional regression.
4 If the reason of a regression is clear, it is okay.
5 We do not have to optimize the result of the benchmark. -->
3 <div id="wrapper"> 6 <div id="wrapper">
4 <div id="host"></div> 7 <div id="host"></div>
5 </div> 8 </div>
6 <script> 9 <script>
7 'use strict'; 10 'use strict';
8 const numChildOfHost = 10; 11 const numChildOfHost = 10;
9 const numDivsInShadow = 100; 12 const numDivsInShadow = 100;
10 const loops = 20; 13 const loops = 20;
11 14
12 for (let i = 0; i < numChildOfHost; ++i) { 15 for (let i = 0; i < numChildOfHost; ++i) {
(...skipping 22 matching lines...) Expand all
35 } 38 }
36 39
37 PerfTestRunner.measureRunsPerSecond({ 40 PerfTestRunner.measureRunsPerSecond({
38 description: "Measure v1 distribution performance", 41 description: "Measure v1 distribution performance",
39 run: run, 42 run: run,
40 done: () => { 43 done: () => {
41 wrapper.innerHTML = ''; 44 wrapper.innerHTML = '';
42 } 45 }
43 }); 46 });
44 </script> 47 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698