Script Preparation code:
Tests:
  • .createElement() + .innerHTML

  • .createHTMLDocument() + .innerHTML

  • DOMParser

  • Nested .createElement() + .appendChild()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .createElement() + .innerHTML
    .createHTMLDocument() + .innerHTML
    DOMParser
    Nested .createElement() + .appendChild()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 15 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
.createElement() + .innerHTML 1182619008.0 Ops/sec
.createHTMLDocument() + .innerHTML 1152683392.0 Ops/sec
DOMParser 1203821312.0 Ops/sec
Nested .createElement() + .appendChild() 1177135488.0 Ops/sec


;