HTML Preparation code:
Tests:
  • Pure JS .innerText

  • Pure JS .innerHTML

  • Pure JS .textContent

  • jQuery .text()

  • jQuery .html()

  • jQuery .find().text()

  • jQuery .find().html()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Pure JS .innerText
    Pure JS .innerHTML
    Pure JS .textContent
    jQuery .text()
    jQuery .html()
    jQuery .find().text()
    jQuery .find().html()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Chrome 78 on Windows 7
View result in a separate tab
Test name Executions per second
Pure JS .innerText 710225.9 Ops/sec
Pure JS .innerHTML 181208.1 Ops/sec
Pure JS .textContent 2406890.0 Ops/sec
jQuery .text() 302331.5 Ops/sec
jQuery .html() 98469.5 Ops/sec
jQuery .find().text() 254386.3 Ops/sec
jQuery .find().html() 91467.5 Ops/sec

Recommended literature: