blob: ed0ff9e05c3bac2ce1ae3e9d2b6dd55e706fe292 [file] [log] [blame]
<!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>