cloneNode vs createElement Performance (v33)

Revision 33 of this benchmark created by Tomasz 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()
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.