anchor.relList.supports("opener") should return true
[WebKit-https.git] / PerformanceTests / Media / AudioElementCreation.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/runner.js"></script>
5 <script>
6     window.addEventListener('load', event => {
7         const numberOfIterations = 20;
8         const numberOfItems = 1000;
9
10         PerfTestRunner.prepareToMeasureValuesAsync({
11             customIterationCount: numberOfIterations,
12             unit: 'ms',
13             done: function () {
14                 PerfTestRunner.gc();
15             }
16         });
17
18         function startIteration()
19         {
20             testGenerator = runIteration();
21             testGenerator.next();
22         }
23
24         function *runIteration()
25         {
26             var startTime = PerfTestRunner.now();
27
28             for (let i = 0; i < numberOfItems; ++i)
29                 document.createElement('audio');
30
31             if (!PerfTestRunner.measureValueAsync(PerfTestRunner.now() - startTime))
32                 return;
33
34             PerfTestRunner.gc();
35             setTimeout(startIteration, 0);
36         }
37
38         startIteration();
39     })
40 </script>
41 </head>
42 <body></body>
43 </html>