Run details:
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 Chrome/86.0.4240.0
Chrome 86
Windows XP
Desktop
one year ago
Test name Executions per second
DOMParser 76.2 Ops/sec
createContextualFragment 56.5 Ops/sec
innerHTML 56.3 Ops/sec
insertAdjacentHTML 59.8 Ops/sec
createContextualFragment PolyFill 57.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • DOMParser

  • createContextualFragment

  • innerHTML

  • insertAdjacentHTML

  • createContextualFragment PolyFill