Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Chrome 122
Windows
Desktop
8 months 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 683143.2 Ops/sec
Pure JavaScript.content.cloneNode 826647.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


;