<!DOCTYPE html> | |
<body> | |
<script src="../resources/runner.js"></script> | |
<script> | |
PerfTestRunner.measureRunsPerSecond({run:function() { | |
var testDiv = document.createElement("div"); | |
testDiv.style.display = "none"; | |
document.body.appendChild(testDiv); | |
for (var x = 0; x < 100000; x++) { | |
testDiv.innerHTML = "This is a tiny HTML document"; | |
} | |
document.body.removeChild(testDiv); | |
}}); | |
</script> | |
</body> |