cloneNode vs createElement Performance (v29)

Revision 29 of this benchmark created on


Description

check speeds with different elements

Preparation HTML

<script>
  var div = document.createElement("div");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
clone div
div.cloneNode(!0)
ready
create div
document.createElement("div")
ready

Revisions

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