Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
Chrome 78
Windows 7
Desktop
5 years ago
Test name Executions per second
jQuery(jQuery.clone()) 0.0 Ops/sec
jQuery(jQuery).clone() 0.0 Ops/sec
jQuery(JavaScript).clone() 0.0 Ops/sec
jQuery(JavaScript.cloneNode.content) 0.0 Ops/sec
jQuery(JavaScript.content.cloneNode) 0.0 Ops/sec
jQuery(getElementById.content.cloneNode) 0.0 Ops/sec
Pure JavaScript.cloneNode.content 101709.9 Ops/sec
Pure JavaScript.content.cloneNode 147230.9 Ops/sec
HTML Preparation code:
Tests:
  • jQuery(jQuery.clone())

  • jQuery(jQuery).clone()

  • jQuery(JavaScript).clone()

  • jQuery(JavaScript.cloneNode.content)

  • jQuery(JavaScript.content.cloneNode)

  • jQuery(getElementById.content.cloneNode)

  • Pure JavaScript.cloneNode.content

  • Pure JavaScript.content.cloneNode


;