Run details:
Mozilla/5.0 (Linux; Android 10; BLA-L09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
innerHTML 11.6 Ops/sec
DOMParser in loop 3.4 Ops/sec
DOMParser + cloneNode 17.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML

  • DOMParser in loop

  • DOMParser + cloneNode


;