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