Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
DOMParser 665.4 Ops/sec
createContextualFragment 500.4 Ops/sec
template 660.7 Ops/sec
innerHTML 501.8 Ops/sec
insertAdjacentHTML 496.4 Ops/sec
createContextualFragment PolyFill 495.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DOMParser

  • createContextualFragment

  • template

  • innerHTML

  • insertAdjacentHTML

  • createContextualFragment PolyFill