1 <!DOCTYPE html> 2 <body> 3 <script src="../resources/runner.js"></script> 4 <script> 5 PerfTestRunner.measureTime({run: function() { 6 (function() { 7 for (var i = 0; i < 500000; i++) 8 document.createElement("div").appendChild(document.createElement("span")); 9 })(); 10 PerfTestRunner.gc(); 11 }}); 12 </script> 13 </body> 14