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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
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 on Windows
View result in a separate tab
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


;