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