Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.232 Whale/2.10.124.26 Safari/537.36
Chrome 90
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
innerHTML 5828937.0 Ops/sec
removeChild 6973682.0 Ops/sec
remove 6869478.0 Ops/sec
innerText 4671380.0 Ops/sec
textContent 5682248.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML

  • removeChild

  • remove

  • innerText

  • textContent