Revision control

1
<script src="../resources/js-test-pre.js"></script>
2
<body>
3
<script>
4
function timeRenderTreeCreation(count) {
5
var t = Date.now();
6
for (var i = 0; i < count; ++i)
7
document.body.appendChild(document.createElement('div'));
8
document.body.offsetTop;
9
return Date.now() - t;
10
}
11
shouldBe("timeRenderTreeCreation(5000) < 20 * timeRenderTreeCreation(500)", "true");
12
</script>
13
<script src="../resources/js-test-post.js"></script>