blob: cc1046e4c88e4888162991f9008bcdc2d54f9b39 [file] [log] [blame]
<!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' in Dromaeo/dom-attr.html, 'innerHTML' in Dromaeo/dom-modify.html, and other DOM attributes that return a String.",
run: function() {
var localDiv = div;
for (var i = 0; i < 100000; i++)
localDiv.id;
}});
</script>
</body>
</html>