blob: 6b3500727622b4667d0d5f704137f705fdee9aa2 [file] [log] [blame]
<!DOCTYPE html>
<div id="div" style="display: none;">
<span id="span"></span>
</div>
<script src="../resources/runner.js"></script>
<script>
var div = document.getElementById("div");
var style = div.style;
function test() {
style.display = "block";
PerfTestRunner.forceLayout();
for (var i = 0; i < 1000; ++i)
span.appendChild(document.createElement("span")).textContent = "span";
PerfTestRunner.forceLayout();
style.display = "none";
span.innerHTML = '';
PerfTestRunner.forceLayout();
}
PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of attaching a large number of inlines to an inline.",
run: test
});
</script>
</html>