Script Preparation code:
AخA
 
htmlstring = '<div class="pie"><a href="example.com"></div><br><p>blah</p><div class="something"><p>content</p></div>'
Tests:
  • jQuery(htmlstring)

     
    $(document.body).append($(htmlstring));
  • jQuery.parseHTML(htmlstring)

     
    $(document.body).append($.parseHTML(htmlstring));
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    jQuery(htmlstring)
    jQuery.parseHTML(htmlstring)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60 on Windows
View result in a separate tab
Test name Executions per second
jQuery(htmlstring) 17873.7 Ops/sec
jQuery.parseHTML(htmlstring) 2948.1 Ops/sec