Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Linux
Other
8 years ago
Test name Executions per second
jQuery(jQuery.clone()) 81826.6 Ops/sec
jQuery(jQuery).clone() 117419.6 Ops/sec
jQuery(JavaScript).clone() 159844.0 Ops/sec
jQuery(JavaScript.cloneNode.content) 326347.6 Ops/sec
jQuery(JavaScript.content.cloneNode) 397091.8 Ops/sec
Pure JavaScript.cloneNode.content 413489.4 Ops/sec
Pure JavaScript.content.cloneNode 529309.6 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


;