Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36
Chrome 102
Mac OS X 10.15.7
Desktop
2 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 704776.3 Ops/sec
Pure JavaScript.content.cloneNode 1027898.1 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


;