Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121
Android
Mobile
10 months ago
Test name Executions per second
DOMParser 358.3 Ops/sec
createContextualFragment 232.5 Ops/sec
template 385.2 Ops/sec
innerHTML 166.5 Ops/sec
insertAdjacentHTML 171.7 Ops/sec
createContextualFragment PolyFill 170.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DOMParser

  • createContextualFragment

  • template

  • innerHTML

  • insertAdjacentHTML

  • createContextualFragment PolyFill