Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (17 sloc) 0.478 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<!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 '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("id");
}});
</script>
</body>
</html>
Something went wrong with that request. Please try again.