cloneNode vs createElement

Benchmark created by Daryl Ginn on


Setup

var tmp = document.createElement('div');

Test runner

Ready to run.

Testing in
TestOps/sec
Clone
var n = tmp.cloneNode()
ready
Create
var n = document.createElement('div');
ready

Revisions

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

  • Revision 1: published by Daryl Ginn on
  • Revision 2: published by The Able Few on
  • Revision 3: published by Rhys Brett-Bowen on
  • Revision 4: published by Rhys Brett-Bowen on
  • Revision 10: published by sandeep on