Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15
Safari 12
Mac OS X 10.14.4
Desktop
4 years ago
Test name Executions per second
querySelector 2925629.0 Ops/sec
innerText 590034.8 Ops/sec
offsetWidth 1773577.5 Ops/sec
innerHTML 1909144.2 Ops/sec
outerText 619445.4 Ops/sec
textContent 2825415.8 Ops/sec
textContentTrim 2588075.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • innerText

  • offsetWidth

  • innerHTML

  • outerText

  • textContent

  • textContentTrim


;