Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
one year ago
Test name Executions per second
DOMParser 739.0 Ops/sec
createContextualFragment 687.0 Ops/sec
template 775.0 Ops/sec
innerHTML 715.6 Ops/sec
insertAdjacentHTML 967.8 Ops/sec
createContextualFragment PolyFill 888.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DOMParser

  • createContextualFragment

  • template

  • innerHTML

  • insertAdjacentHTML

  • createContextualFragment PolyFill