Run details:
Mozilla/5.0 (Linux; Android 9; Nokia 8 Sirocco) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android
Mobile
5 years ago
Test name Executions per second
innerHTML 13.3 Ops/sec
DOMParser in loop 4.2 Ops/sec
DOMParser + cloneNode 23.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML

  • DOMParser in loop

  • DOMParser + cloneNode


;