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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/SlotDistibutedNextPrevious.html

Issue 2818923002: Remove unstable SlotDistibutedNextPrevious.html benchmark (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | 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 <script src="../resources/runner.js"></script>
3 <div id="host">
4 </div>
5 <script>
6 'use strict';
7 const numAssignedDivs = 100;
8
9 const host = document.getElementById('host');
10 for (let i = 0; i < numAssignedDivs; ++i){
11 let div = document.createElement('div');
12 div.setAttribute('slot', 's1');
13 div.appendChild(document.createTextNode('div' + i));
14 host.appendChild(div);
15 }
16
17 const slot = document.createElement('slot');
18 slot.setAttribute('name', 's1');
19 const shadowRoot = host.attachShadow({mode: 'open'});
20 shadowRoot.appendChild(slot);
21
22 function run() {
23 slot.innerText;
24 }
25
26 PerfTestRunner.measureRunsPerSecond({
27 description: 'Measure Slot Distribution Calculation',
28 run: run,
29 done: () => {
30 }
31 });
32 </script>
33
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698