Run details:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Windows 7
Desktop
2 years ago
Test name Executions per second
append 139.1 Ops/sec
appendChild 135.8 Ops/sec
insertAdjacentHTML 257.4 Ops/sec
DOMParser 197.1 Ops/sec
createContextualFragment 116.1 Ops/sec
HTML Preparation code:
Tests:
  • append

  • appendChild

  • insertAdjacentHTML

  • DOMParser

  • createContextualFragment