Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
one year ago
Test name Executions per second
DOMParser 326.8 Ops/sec
createContextualFragment 314.0 Ops/sec
template 296.1 Ops/sec
innerHTML 321.1 Ops/sec
insertAdjacentHTML 309.7 Ops/sec
createContextualFragment PolyFill 321.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DOMParser

  • createContextualFragment

  • template

  • innerHTML

  • insertAdjacentHTML

  • createContextualFragment PolyFill