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