blob: b55f284c7deed8a2b106cc9b1ea0bf33a9621060 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../resources/runner.js"></script>
<script>
var div = document.createElement("div");
div.appendChild(document.createElement("div"));
PerfTestRunner.measureRunsPerSecond({
description: "This benchmark covers 'firstChild', 'lastChild', 'nextSibling' and 'previousSibling' in Dromaeo/dom-traverse.html, and other DOM attributes that return a Node object.",
run: function() {
var localDiv = div;
for (var i = 0; i < 100000; i++)
localDiv.firstChild;
}});
</script>
</body>
</html>