blob: 55ec1aedcba8859a0a987cf9446697d0d03b1b9e [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="foo"></div>
<script src="../resources/runner.js"></script>
<script>
PerfTestRunner.measureRunsPerSecond({
description: "This benchmark covers 'getElementById' in Dromaeo/dom-query.html, and other DOM methods that return a Node object.",
run: function() {
for (var i = 0; i < 100000; i++)
document.getElementById("foo");
}});
</script>
</body>
</html>