<!DOCTYPE html> | |
<body> | |
<script src="../resources/runner.js"></script> | |
<script> | |
PerfTestRunner.measureTime({run: function() { | |
(function() { | |
var root = document.createElement("div"); | |
for (var i = 0; i < 1000000; i++) | |
root.appendChild(document.createElement("div")); | |
})(); | |
PerfTestRunner.gc(); | |
}}); | |
</script> | |
</body> |