blob: b6695a8fa0cfdbd7dd5e61bd3d956920d90bb6fd [file] [log] [blame]
<script src="../resources/js-test-pre.js"></script>
<body>
<script>
function timeRenderTreeCreation(count) {
var t = Date.now();
for (var i = 0; i < count; ++i)
document.body.appendChild(document.createElement('div'));
document.body.offsetTop;
return Date.now() - t;
}
shouldBe("timeRenderTreeCreation(5000) < 20 * timeRenderTreeCreation(500)", "true");
</script>
<script src="../resources/js-test-post.js"></script>