<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="../resources/runner.js"></script> | |
<script> | |
PerfTestRunner.measureRunsPerSecond({ | |
description: "This benchmark covers 'getElementById (not in document)' in Dromaeo/dom-query.html, and other Node-query methods that return a null.", | |
run: function() { | |
for (var i = 0; i < 100000; i++) | |
document.getElementById("foo"); | |
}}); | |
</script> | |
</body> | |
</html> |