Iframe performance overhead

Benchmark created by Lucjan Suski on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Setup

iframe = $('<iframe srcdoc="<div>asd <div>asd <div>asd <div>asd <div>this <span>is <span>test</span></span></div></div></div></div></div>">');
    
    element = $('<div style="border: 2px inset;">').append($("<div>asd <div>asd <div>asd <div>asd<div>this <span>is <span>test</span></span></div></div></div></div></div>"));

Test runner

Ready to run.

Testing in
TestOps/sec
iframe
iframe.appendTo('body')
ready
element
element.appendTo('body')
ready

Revisions

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