div vs iframe (v3)

Revision 3 of this benchmark created on


Preparation HTML

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

Setup

content.innerText = 'http://www.rasajati.tk/results?search_query=jakarta%20konser&page=3#search-results';

Test runner

Ready to run.

Testing in
TestOps/sec
div
for (var i = 0; i < 10; ++i) {
  var el = document.createElement('div');
  content.appendChild(el);
}
ready
iframe
for (var i = 0; i < 10; ++i) {
  var el = document.createElement('iframe');
  content.appendChild(el);
}
ready

Revisions

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