blob: b70d41b27b88e6274fe212f7314b36846004c8e0 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../resources/runner.js"></script>
<script>
var div = document.createElement("div");
var childDiv = document.createElement("div");
PerfTestRunner.measureRunsPerSecond({
description: "This benchmark covers 'appendChild' and 'removeChild' in Dromaeo/dom-modify.html.",
setup: function() {
div.innerHTML = "";
},
run: function() {
var localDiv = div;
var localChildDiv = childDiv;
for (var i = 0; i < 50000; i++)
localDiv.appendChild(localChildDiv);
}});
</script>
</body>
</html>