Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Mac OS X 10.15
Desktop
one month ago
Test name Executions per second
.createElement() + .innerHTML 1182619008.0 Ops/sec
.createHTMLDocument() + .innerHTML 1152683392.0 Ops/sec
DOMParser 1203821312.0 Ops/sec
Nested .createElement() + .appendChild() 1177135488.0 Ops/sec
Script Preparation code:
Tests:
  • .createElement() + .innerHTML

  • .createHTMLDocument() + .innerHTML

  • DOMParser

  • Nested .createElement() + .appendChild()