Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
using textContent 174450.5 Ops/sec
using removeChild 246910.6 Ops/sec
using remove 248225.5 Ops/sec
using innerHtml 11539.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • using textContent

  • using removeChild

  • using remove

  • using innerHtml