Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Ubuntu
Desktop
one year ago
Test name Executions per second
querySelector 7824334.0 Ops/sec
innerText 3264221.0 Ops/sec
offsetWidth 4610885.0 Ops/sec
innerHTML 6873741.5 Ops/sec
outerText 3201431.8 Ops/sec
textContent 6722193.5 Ops/sec
textContentTrim 4898077.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • innerText

  • offsetWidth

  • innerHTML

  • outerText

  • textContent

  • textContentTrim


;