<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script>
PerfTestRunner.measureTime({
description: "Measures performance of creating one million divs inside a div, releasing references, then running the garbage collector.",
run: function() {
(function() {
var root = document.createElement("div");
for (var i = 0; i < 1000000; i++)
root.appendChild(document.createElement("div"));
})();
PerfTestRunner.gc();
}
});
</script>
</body>