div vs iframe (v2)

Revision 2 of this benchmark created on


Preparation HTML

<div id="content" style="display: none">
</div>
<script>
  var content = document.getElementById('content');
</script>

Setup

content.innerText = '';

Test runner

Ready to run.

Testing in
TestOps/sec
div
<div id="TreeFrame" width="200px" scrolling="no" height="100%"></div>
<script>
  var treeframe=document.getElementById("TreeFrame");
</script>       
 
ready
iframe
<iframe id="TreeFrame" src="TreeDesign.aspx" frameBorder="0" width="200px" scrolling="no" height="100%" runat="server"></iframe>

<script>
  var treeframe=document.getElementById("TreeFrame");
</script>
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.