<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="../resources/runner.js"></script> | |
<script> | |
PerfTestRunner.measureRunsPerSecond({ | |
description: "This benchmark covers 'createElement', 'createTextNode' and 'cloneNode' in Dromaeo/dom-modify.html, and other DOM methods that return a new Node object.", | |
run: function() { | |
for (var i = 0; i < 5000; i++) | |
document.createElement("div"); | |
}}); | |
</script> | |
</body> | |
</html> |