blob: 6c73d940d871a50f13f293087c3a48a6edc5f921 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script>
PerfTestRunner.measureTime({
description: "Measures performance of creating one million divs without retaining references, then running the garbage collector.",
run: function() {
(function() {
for (var i = 0; i < 1000000; i++)
document.createElement("div");
})();
PerfTestRunner.gc();
}
});
</script>
</body>