OLD | NEW |
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 Loading... |
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> |
OLD | NEW |