blob: 96e5ebdb45ecac3fa04ad00c161176cf13f35de7 [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 'setAttribute' in Dromaeo/dom-attr.html and other DOM methods that return an undefined.",
run: function() {
var localDiv = div;
for (var i = 0; i < 10000; i++)
localDiv.setAttribute("role", "group");
}});
</script>
</body>
</html>