Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Chrome 79
Linux
Desktop
4 years ago
Test name Executions per second
text.data 593010.6 Ops/sec
el.textContent 853553.2 Ops/sec
text.nodeValue 643031.3 Ops/sec
el.innerHTML 51746.3 Ops/sec
text.remove/append 138906.1 Ops/sec
text.textContent 591769.0 Ops/sec
text.replaceData 494528.7 Ops/sec
HTML Preparation code:
Tests:
  • text.data

  • el.textContent

  • text.nodeValue

  • el.innerHTML

  • text.remove/append

  • text.textContent

  • text.replaceData


;