HTML Preparation code:
Tests:
  • append

  • appendChild

  • insertAdjacentHTML

  • DOMParser

  • createContextualFragment

  • append documentFragment

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    append
    appendChild
    insertAdjacentHTML
    DOMParser
    createContextualFragment
    append documentFragment

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99 on Windows
View result in a separate tab
Test name Executions per second
append 767.2 Ops/sec
appendChild 748.5 Ops/sec
insertAdjacentHTML 1061.8 Ops/sec
DOMParser 869.9 Ops/sec
createContextualFragment 835.6 Ops/sec
append documentFragment 514.7 Ops/sec