Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (17 sloc) 0.487 kB
<!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 '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("id", "foo");
}});
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.