cloneNode vs createElement

JavaScript performance comparison

Revision 7 of this test case created

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
JS Clone
var tmp = document.createElement('div');
var a = tmp.cloneNode();
var b = tmp.cloneNode();
var c = tmp.cloneNode();
var d = tmp.cloneNode();
var e = tmp.cloneNode();
var f = tmp.cloneNode();
pending…
JS Create
var a = document.createElement('div');
var b = document.createElement('div');
var c = document.createElement('div');
var d = document.createElement('div');
var e = document.createElement('div');
var f = document.createElement('div');
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment