Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
Chrome 124
Windows
Desktop
8 months ago
Test name Executions per second
DOMParser 1046.8 Ops/sec
createContextualFragment 875.9 Ops/sec
template 1079.7 Ops/sec
innerHTML 829.2 Ops/sec
insertAdjacentHTML 825.1 Ops/sec
createContextualFragment PolyFill 820.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DOMParser

  • createContextualFragment

  • template

  • innerHTML

  • insertAdjacentHTML

  • createContextualFragment PolyFill