document-fragment-vs-dynamic-created

JavaScript performance comparison

Test case created by document-fragment-vs-dynamic-created

Preparation code

<div id="content"></div>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
fragment
var f = document.createDocumentFragment();
var div = document.createElement('div');
var ul = document.createElement('ul');
div.appendChild(ul);

f.appendChild(div);

document.getElementById('content').appendChild(f);
     
 
pending…
dynamic-created
var div = document.createElement('div');
var ul = document.createElement('ul');
div.appendChild(ul);

document.getElementById('content').appendChild(div);
pending…

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

Compare results of other browsers

0 comments

Add a comment