<!DOCTYPE html>
<html>
<body>
<div id="foo"></div>
<script src="../resources/runner.js"></script>
<script>
var div = document.getElementById("foo");
PerfTestRunner.measureRunsPerSecond({
description: "This benchmark covers 'element.property = value' in Dromaeo/dom-attr.html, and other DOM attributes that sets a String.",
run: function() {
var localDiv = div;
for (var i = 0; i < 50000; i++)
localDiv.id = "foo";
}});
</script>
</body>
</html>